I have a list of packages on my system, that were installed and removed again, but not purged, i.e. there are still a lot of conffiles etc. laying around.
The output of dpkg --get-selections | grep deinstall
lists about 85 different packages which I don't need and want to be purged entirely.
So my short question, which I decided to finally ask after experimenting around has lead to this problem, is:
How do I completely purge previously installed packages that are already removed?
Reinstalling and then purging is not an option, of course.
sudo apt-get purge [package]
after you have removed them. I just tried it and it worked. – Jos Oct 19 '15 at 12:53aptitude
for that -- pressing_
on the lineNot installed packages
will mark all of these packages for configuration file removal. Not an answer because aptitude is likely going away. – Simon Richter Oct 20 '15 at 02:18aptitude purge ?config-files
of course you will need to have installedaptitude
– Rolf Feb 07 '19 at 23:46