Tip: Importing your /var/cache/apt/ files to apt-cacher database
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:
/usr/share/apt-cacher
The right script for this task is: apt-cacher-import.pl , so run:
sudo /usr/share/apt-cacher/apt-cacher-import.pl /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
Trackback URL for this post:
If you like this article, subscribe to our full rss
Please post your question in our forum and use comments only to leave your comments about the article, thanks.













Post new comment