soscmd/soscmd-lspkg
2023-06-03 11:28:50 +02:00

6 lines
173 B
Bash
Executable file

#!/bin/bash
if [ ! -f "/bin/dpkg" ]; then
echo ":: Error: You are not running a Debian based distro."
exit 1
fi
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n