Is there any difference between
sudo apt-get purge <package-name>
and
sudo apt-get remove <package-name>
?
I often see people recommend one or the other.
In other words, what does apt-get purge
remove that apt-get remove
doesn't?
Is there any difference between
sudo apt-get purge <package-name>
and
sudo apt-get remove <package-name>
?
I often see people recommend one or the other.
In other words, what does apt-get purge
remove that apt-get remove
doesn't?
As the
man apt-get
page says:This of course, does not apply to packages that hold configuration files inside the user's home folder (e.g.
/home/SexyNoJutsuUser
), these files will not be touched ( Why does "Purge" not remove everything related to an app? )So for example, if you were to
purge
Chrome, Firefox, Kodi or any other that holds some configuration files inside your/home
folder, these configuration files will stay there.On the other hand if you were to install Apache, squid, MySQL or any other services similar that save their configuration files in
/etc
, these configuration files will be deleted if you usepurge
.An excerpt from my answer on another question:
apt-get purge
removes configuration files, whileapt-get remove
does not.