Skip to content

Old Package / Unpurged

Remove Old Packages / Unpurged packages

While not directly a security concern, unpurged packages are not installed but still have remains left on the system (e.g. configuration files). In case software is reinstalled, an old configuration might be applied. Proper cleanups are therefore advised.

Find old packages

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

Remove Old Unpurged packages

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