Contents
What does APT clean do?
The apt-get clean command clears the local repository of retrieved package files that are left in /var/cache. The apt-get clean command is generally used to clear disk space as needed, generally as part of regularly scheduled maintenance.
How do you clean up apt-get?
Clear the APT cache: The clean command clears out the local repository of downloaded package files. It removes everything except the partials folder and lock file from /var/cache/apt/archives/ . Use apt-get clean to free up disk space when necessary, or as part of regularly scheduled maintenance.
What’s the best way to clean apt cache?
sudo apt-get clean. This will remove the content of the /var/cache/apt/archives directory (except the lock file). Here’s a dry run (simulation) of what the apt-get clean command deletes: There is another command that deals with cleaning the apt cache: sudo apt-get autoclean. Unlike clean, autoclean only removes the packages
Where does the apt get clean command go?
apt-get clean The apt-get clean command clears the local repository of retrieved package files that are left in /var/cache. The directories it cleans out are /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. The only files it leaves in /var/cache/apt/archives are the lock file and the partial subdirectory.
Why do I need to use apt get clean?
The apt-get clean command is generally used to clear disk space as needed, generally as part of regularly scheduled maintenance. The apt-get autoclean option, like apt-get clean, clears the local repository of retrieved package files, but it only removes files that can no longer be downloaded and are virtually useless.
What kind of files does apt-get clean up?
The only files it leaves in /var/cache/apt/archives are the lock file and the partial subdirectory. You might have a number of files in the directory prior to running the clean operation: