Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Let's say I first install some package using apt-get, for example:

apt-get install some-package

Then I remove this package using:

apt-get remove some-package

Now I try to install that same package again but the install process finishes very quickly.

Why is that? Does apt-get save downloaded files?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

Because apt-get is caching downloaded packages in /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.

If you want to install a package apt-get first looks up the cache and only downloads the package again if it couldn't find that package in the cache.

To empty the cache you have to issue a apt-get clean.

share|improve this answer
I was going to say because apt-get packages don't die they multiply. But I guess your answer is more technically accurate ;) – Michael Brown Nov 22 '11 at 19:56

Yap, the packages are cached after installing :)


share|improve this answer

Your Answer


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.