For uninstalling an app (or package) should I use apt-get remove package-name
or apt-get purge package-name
?
What is advantage of any of them to other one?
If you have customized the package/software at all, either by editing the config files directly, or via a GUI, you may want to keep your customizations. Usually in Unix/Linux systems, configurations are saved in text files, even if the configuration/customization is done via the GUI. Each Debian binary deb package has a list of files which it identifies as config files. So, if you have not configured the package, or you don't want to keep your configurations, you can use If you do keep the config files, then if/when you reinstall the package, Debian will attempt to reuse the saved configuration information. If the version of the package you are trying to (re)install has config files that conflict with the configuration files that are already installed, it will again ask you before overwriting, as it does on upgrade. Minor comment: if you have removed the package and later want to remove the config files, you will need to call
should remove the config files for you in that case. |
||||
|
From the man page of
I would tend to use |
|||
|
purge remove But advantages or disadvantages: It's related to your system, your packages, your machine, install it or not, and so on. |
|||
|