Results 1 to 5 of 5

Thread: Can I cache Ubuntu updates locally?

  1. #1
    Join Date
    Oct 2007
    Beans
    17

    Can I cache Ubuntu updates locally?

    Hi, I have a few Ubuntu installations on various laptops and desktop systems and get hit with download charges from my ISP whenever I update them.

    I know squid can cache files but generaly its intended for small files. What I'd like to do is keep a cache of updates on a USB hard disk that I can apply whenever I want.

    It would be great of the cache contents were refreshed its its contents were superceded. I'm sure I'm not the first to think of this but I can't find anything other that Squid.

    Peter

  2. #2
    Join Date
    Oct 2007
    Beans
    Hidden!

    Re: Can I cache Ubuntu updates locally?

    What I do is use apt-cacher-ng

    It acts like a apt proxy, Its in the repo's and very easy to set up. Only annoyance, if the machine that is configured as proxy is offline, then none of the other computers can install anything without making a small change to the apt configuration file.

    http://www.ubuntugeek.com/apt-cacher...-packages.html

  3. #3
    Join Date
    Jul 2008
    Location
    /home/konqueror7
    Beans
    Hidden!

    Re: Can I cache Ubuntu updates locally?

    Quote Originally Posted by Infoteksec View Post
    Hi, I have a few Ubuntu installations on various laptops and desktop systems and get hit with download charges from my ISP whenever I update them.

    I know squid can cache files but generaly its intended for small files. What I'd like to do is keep a cache of updates on a USB hard disk that I can apply whenever I want.

    It would be great of the cache contents were refreshed its its contents were superceded. I'm sure I'm not the first to think of this but I can't find anything other that Squid.

    Peter
    have you tried APTonCD? you can backup your cache and then mount/use it on other units as a source, thus not requiring anymore download. its also available in the repos. this is whati usually use. =)

    Code:
    sudo apt-get install aptoncd
    There is nothing either good or bad, but thinking makes it so. - W. Shakespeare

    Linux User #484611 | Ubuntu User #26153 | Blog

  4. #4
    Join Date
    Oct 2007
    Beans
    17

    Re: Can I cache Ubuntu updates locally?

    Thanks guys - APTonCD works well. I was concerned that I had to write the APT list to CD since I dont have a CD drive on my Acer Aspire One. Thankfully, aptoncd creates an ISO file and which it quite happy to read from on so I can use a USB stick as my storage device.

    Thanks again

  5. #5
    Join Date
    Nov 2011
    Beans
    1

    Unhappy Re: Can I cache Ubuntu updates locally?

    Evidently, APTonCD is not a perfect solution, because of a consideration described in its Wikipedia article, viz.:
    Since APTonCD just copies the deb files on the cache, it will not save files that are downloaded when the .deb packages are installed, this causes packages like "ubuntu-restricted-extras" or the flash plugin to fail when installing them on a computer with no internet access.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •