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.

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

1 Answer 1

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 archive.ubuntu.com), and they will always be more up to date regarding security fixes, feature enhancements, and etc.

Ubuntu archives are here: http://archive.ubuntu.com/

There are other online archives that host installable debian packages.

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.