Debian APT

From Realm Business Systems
Revision as of 06:45, 21 December 2025 by Rdswikiadmin (talk | contribs) (Created page with " =Check for unused packages= dpkg -l | awk '/^rc/ { print $2 }' apt-get purge xxx apt-mark hold smartmontools ALL in one go; apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }') dpkg --get-selections | grep 'hold$' apt-mark unhold openssh-server apt-mark unhold net-tools apt-mark unhold bridge-utils")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Check for unused packages

dpkg -l | awk '/^rc/ { print $2 }'

apt-get purge xxx

apt-mark hold smartmontools

ALL in one go;

apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')


dpkg --get-selections | grep 'hold$'

apt-mark unhold openssh-server
apt-mark unhold net-tools
apt-mark unhold bridge-utils