soscmd/soscmd-lspkg

7 lines
173 B
Text
Raw Normal View History

2023-06-03 11:28:50 +02:00
#!/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