I am in the process of cleaning up my system. And I see a lot of space occupied by this folder /var/cache/apt/archives (1.5GB). Is it absolutely necessary to keep all these archives?
4 Answers
You don't need to keep them around if you don't want them. Executing a
sudo apt-get cleanwill clean out the directory.
2Seems like
sudo apt-get autocleanis a better choice than
sudo apt-get cleanautoclean will only remove "useless" archives
From the man page:
6Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.
You can adjust settings in Synaptic package manager, menu Settings/Preferences, the Files tab. From there you can also delete the cache.
2It is better to save packages elsewhere then clean it up [Jorge Castro's process]. When you reinstall OS or a package it will not download again which save time and bandwidth. apt-get first check require packages in local storage[/var/cache/apt/archives] if does not exists then download else just do install. So you can save packages for future uses.
3