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.

Does cleaning /var/cache/apt/archives by apt-get clean affect installed applications?

Is it that the .deb packages there are needed for applications to run properly?

share|improve this question

3 Answers 3

up vote 13 down vote accepted

No, apt-get clean will not harm your system. The .deb packages in /var/cache/apt/archives are used by the system to install software. But once the software is installed, these .deb packages are no longer needed. You will need these .deb files only while re-installing the software. In case you do not need to re-install, remove these .deb files using apt-get clean.

share|improve this answer

From the manpage of apt-get.

clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. When APT is used as a dselect(1) method, clean is run automatically. Those who do not use dselect will likely want to run apt-get clean from time to time to free up disk space.

Note the emphasized line. You should run apt-get clean from time to time.

The answer is no, it does no harm, not at all.

share|improve this answer

Not at all.

When you install an application, apt downloads needed .deb file, and then extracts its data into your file system. The .deb file is, however, kept - so that, for example, in case you want to reinstall that application, the .deb file will have been already downloaded. That means you can safely clean that cache with apt-get clean and it will not do any harm to your system and neither for applications.

This way you can free some disk space.

share|improve this answer

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.