5

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?

2 Answers 2

7

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.

1
  • I was going to say because apt-get packages don't die they multiply. But I guess your answer is more technically accurate ;) Nov 22, 2011 at 19:56
1

Yap, the packages are cached after installing :)

/var/cache/apt/....

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .