SixBytesUnder/custom-motd

Available updates from apt

SixBytesUnder opened this issue · 1 comments

apt-get -s dist-upgrade | tail -n 1
apt-get -s dist-upgrade | grep -Po '^[[:digit:]]+ (?=upgraded)'
apt-get -s dist-upgrade | grep -o '[[:digit:]][[:space:]]not upgraded'

update to
apt list --upgradable | wc -l

Went with apt-get since apt CLI is still not stable.
Done in dce3da6