Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

4 Answers

up vote 28 down vote accepted

You don't need to keep them around if you don't want them. Executing a

sudo apt-get clean

will clean out the directory.

share|improve this answer
add comment

You can adjust settings in Synaptic package manager, menu Settings/Parameters, the Files tab. From there you can also delete the cache.

share|improve this answer
add comment

Seems like

sudo apt-get autoclean

is a better choice than

sudo apt-get clean

autoclean will only remove "useless" archives

From the man page:

Like 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.

share|improve this answer
    
Even if this is what I also remembered from way back - turns out, for me (on 11.04) autoclean did NOT remove files in /var/cache/apt/archives/ - while clean did... –  sdaau Mar 4 at 20:18
add comment

It 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.

share|improve this answer
2  
I doubt he will need all the 1,5Gb of updates to use on a new system! –  Bruno Pereira Oct 12 '11 at 20:13
    
They can be moved on a CD or other support, so they don't waste space on the local drive. This is called a 'local repository'. –  ignis Nov 7 '12 at 20:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.