Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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