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

I am using Ubuntu 10.10. Suppose I run this command to install GCC:

sudo apt-get install gcc*

I want save gcc on my pc forever, so that next time I do not have to run that apt-get command to install it.

  1. How can I save it from its cache?

  2. How can I find more Ubuntu repositories to install more packages?

share|improve this question

apt-get install <pkg> first downloads the binary debian package to /var/cache/apt/archives/ and then installs it. So you could theoretically copy binary debian pkgs from there and install them manually elsewhere. However, if the package depends on other packages, then you would also need to take steps to install them.

You may not want to do this because you will always be able to install the latest debian binary pkgs from the usual online archives (like for example, and they will always be more up to date regarding security fixes, feature enhancements, and etc.

Ubuntu archives are here:

There are other online archives that host installable debian packages.

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.