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.

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
add comment

2 Answers

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 ;) –  Mike Brown Nov 22 '11 at 19:56
add comment

Yap, the packages are cached after installing :)

/var/cache/apt/....

share|improve this answer
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.