debian/checkupdates

6 lines
163 B
Bash
Executable File

#!/bin/sh
apt-get -qy update > /dev/null
apt-get -o Debug::NoLocking=yes -s dist-upgrade -y | awk '/^Inst/ {print $2 " " $5}' | wc -l
rm -rf /var/lib/apt/lists/*