Yesterday, I wrote about apt-cacher, and when you first install it, its database is empty, and of course the server where it is installed could have a lot of .deb files, in the /var/log/apt/archives/, so it would be great to use those packages in our new ATP proxy.

To do that we need one of the perl scripts that come with apt-cacher, and that are stored in:


The right script for this task is: , so run:

sudo /usr/share/apt-cacher/ /var/cache/apt/archives

That is all, now you have all those packages available in your new Proxy server, to save disk space your can then run:

sudo aptitude clean