


This command will list all packages that have been removed but not purged. Find all packages that are removed but not purged in Debian, Ubuntuįirst, let us list the leftover files in the system using dpkg command: $ dpkg -l | grep ^rc Now, let us go ahead and find out the files that we left behind in the system. The difference is that it removes all stored archives in your cache for packages that can not be downloaded anymore.įor more details, refer man pages. It doesn't uninstall any package, it just cleans that cache.Īpt autoclean - Like " apt clean", the " apt autoclean" command clears out the local repository of retrieved package files. The " apt-get clean" command removes those downloaded 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.Īpt clean - When you use apt to install or update something from the repositories, it first downloads all the required packages to your local drive and then installs them. Those packages are called unused packages. When you reinstall the same package later, all of your settings will still be intact.Īpt purge - It is same as " apt remove" command but also removes all of the configuration files.Īpt autoremove - It removes any packages on your Deb-based system that are no longer required. Apt remove - This command is used to remove a package but leave all of it's configuration files in place.
