7 lines
137 B

#!/bin/bash
UPDATE_PKGS=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
ALL_PKGS=$(pacman -Q | wc -l)
echo "${UPDATE_PKGS}/${ALL_PKGS}"