Contents
How do I purge packages in Linux?
To uninstall a program, use the “apt-get” command, which is the general command for installing programs and manipulating installed programs. For example, the following command uninstalls gimp and deletes all the configuration files, using the “ — purge” (there are two dashes before “purge”) command.
How do I delete a configuration file in Linux?
To remove or delete a file or directory in Linux, FreeBSD, Solaris, macOS, or Unix-like operating systems, use the rm command or unlink command. This page explains how to delete a given file on a Linux or Unix like system using the command line option.
How to remove unnecessary configuration files on Debian-based systems?
apt autoremove – It removes any packages on your Deb-based system that are no longer required. Those packages are called unused packages. So, the “autoremove” command simply removes packages that hasn’t been installed manually by the user and that’s not needed by any other package in your system.
How to completely remove a package in Debian?
So it taught me to always be sure that apt-get worked and killed all needed processes. purge should also remove the init scripts, so the update-rc.d step is not really necessary. Another thing that is possible that another package also provides a daemon called denyhosts.
How can I purge configuration files after I’ve removed the package?
This will remove all of the remaining files that the package installed. Click the check button on the tool bar and click apply when the dialogue pops up. You can also purge individual packages but then you would also have to purge the dependencies one by one. It is not practical.
How often should I use apt purge in Debian?
There is no harm if you don’t use “apt purge” command often. But, It is always a good practice to run “apt autoremove” and “apt autoclean” commands once in a while to remove unused dependencies and clear the local cache folder in your Debian systems.