Results 1 to 6 of 6

Thread: Local Network Repository Mirror - With a Catch

  1. #1
    Join Date
    Dec 2010
    Location
    Perth, Western Australia
    Beans
    43
    Distro
    Ubuntu 10.04 Lucid Lynx

    Local Network Repository Mirror - With a Catch

    Not sure what to search for as all previous searches don't help much.

    Basically I have 5 ubuntu machines on my local network. When there is an update, I must download the update manually and seperately on each one.

    Is there a way that I can have these 5 machines download the packages from my server.

    I don't want to download the whole repository and host that locally.

    When I need a package the clients should ask my server for it, if the server doesn't have it - it should be fetched from the internet and then cached ON THE SERVER for use on the remaining 4 machines.

    I can't work out the best way to do this, nor can I find a similar/realistic alturnative.

    Anyone got any ideas?

    -Much Appreciated
    ryannathans

  2. #2
    Join Date
    Dec 2010
    Location
    Perth, Western Australia
    Beans
    43
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Local Network Repository Mirror - With a Catch

    bumpity

  3. #3
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Local Network Repository Mirror - With a Catch

    Hm... Very interesting question!

    My guess is you'd need to write a small script that would run apt-get upgrade -d >> upgrades.list. The cp the list to the server and have a script on the server add wget commands to the package script.
    I think it could be done but it'd take a little bash wizardry.

  4. #4
    Join Date
    Nov 2008
    Beans
    9

    Re: Local Network Repository Mirror - With a Catch

    Quote Originally Posted by ryannathans View Post

    I don't want to download the whole repository and host that locally.


    You could:
    1- download updates in one machine,
    2- Copy the whole dir: /etc/cache/apt/archives/* to the other machines.
    3- run "apt-get update"

    In order to do this, just share /etc/cache/apt/archives/ via NFS or samba, and write a simple script.


    Another alternative is to use aptOnCD.

  5. #5
    Join Date
    Nov 2007
    Location
    Wisconsin
    Beans
    1,139

    Re: Local Network Repository Mirror - With a Catch

    The apt-cacher-ng package is designed for this use case.

  6. #6
    Join Date
    Dec 2010
    Location
    Perth, Western Australia
    Beans
    43
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Local Network Repository Mirror - With a Catch

    Quote Originally Posted by Cheesehead View Post
    The apt-cacher-ng package is designed for this use case.
    I ended up with the apt-cacher.

    First request Fri Jan 20 23:55:06 2012
    Last request Sun Feb 19 11:14:15 2012
    Total requests 6203
    Total traffic 3.17 GB
    Transfers 1826.505 MB (56.25%) (Cache hit) 1420.164 MB (43.74%) (Cache Miss)
    Last edited by ryannathans; February 20th, 2012 at 03:47 PM.

Tags for this Thread

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
  •