Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to copy all of the packages I have installed on one Debian machine to another Debian machine without doing another apt-get install and downloading all of the package all over again.

share|improve this question

4 Answers 4

up vote 12 down vote accepted

They're stored in:


unless you've issued a:

apt-get clean
share|improve this answer
Thank you so much! So, let's say if I copied the files to another machines, what's the easiest way to install all of them? – superuser Jan 15 '12 at 17:59
Assuming that all the dependencies are satisfied: dpkg -i *.deb. – cYrus Jan 15 '12 at 18:04
This is just fine, manual way, well doable on dislocated systems, e.g. without network connection. If the machines are connected (mostly preferred on local network) there are more convenient automatic ways to achieve this, see my answer below about apt proxy. – SkyRaT Mar 30 at 10:24

Maybe you just need:

apt-get download mypackage1 mypackage2

it will download given *.deb files to the current directory. No need for root.

share|improve this answer

If you had already issued

apt-get clean

you can take a look at these pages to learn about replicating the same package configuration on the other machine

share|improve this answer
both links are now gone, any other source for the info? – Mark Ch Oct 21 at 8:57

You can also create a package proxy, we use approx

Then the real repository servers are specified in the approx.conf, like:


In all machines you want to install just place the following to /etc/apt/sources.list:

deb http://<hostname>:9999/debian/ squeeze main contrib non-free
deb http://<hostname>:9999/security/ squeeze/updates main contrib non-free

When first machine is downloading the packages, they go from the internet and are stored in the cache of approx. All other machines download the packages from the cache directly.

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.