Enter your email address:

Delivered by FeedBurner

Tip: Importing your /var/cache/apt/ files to apt-cacher database


StumbleUpon Toolbar

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:

http://www.go2linux.org/trackback/487
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting