0

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?

1 Answer 1

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.

You must log in to answer this question.

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