[Hot News] [SOLVED]: What Is The Difference Between apt-get purge Vs apt-get remove

[Hot News] [SOLVED]: What Is The Difference Between apt-get purge Vs apt-get remove
Di Posting Oleh : Crew Blog
Kategori : FAQ LINUX OS Q&A RASPBERRY PI TECHNOLOGY TUTORIALS Ubuntu


If you have been using Linux system for a while, chances are that you have been using the apt-get package manager tool to install and remove applications and tools from your Linux kernel command line.

However, when removing some of the applications that you no longer require in your Linux machine, you have two different options to chose from apt-get tool to get rid of the application.

First option is to use apt-get remove and the second option is to use apt-get purge.

So what is the difference between apt-get purge Vs apt-get remove commands? We checked with out Linux Gurus over here and this is the simplest explanation we got describing the difference between the two Linux console commands:

sudo apt-get remove: This command results in the apt-get manager tool to remove the mentioned application files from the system, however without touching any of its associated configuration files.

sudo apt-get purge: On the other hand, apt-get purge command would result in the apt-get manager removing both application files and its associated configuration files from the Linux system.

One more important point to remember is that removing configuration files in case of apt-get purge command works only when these configuration files reside in directories outside the user's home directory. For example apache and mysql applications store their configuration files under /etc directory which, i case of apt-get purge command would get deleted.

Hope this helps!

Related Posts :