I was doing a package removal with apt-get remove
but then realized I should have done a --purge
along with it to remove the configuration files.
Can I remove the packages configuration files easily or do I need to reinstall the package and then remove with a --purge
?
Here is a simple command that will meet your request:
Yes you can.
From the command line:
This will remove all of the remaining files that the package installed.
You can also do this from a GUI:
You can purge all previously uninstalled packages with
aptitude
:You can also purge individual packages but then you would also have to purge the dependencies one by one. It is not practical.
Purge do not remove configuration file atleast in my case it was not able to remove configuration file.
To remove configuration file: