[ubuntu-za] Local Repository Question

Raoul Snyman raoul.snyman at saturnlaboratories.co.za
Fri Jun 25 10:02:58 BST 2010


On Fri, 25 Jun 2010 10:54:18 +0200, Raymond Barbour <xraya4t at gmail.com>
wrote:
> To use all you need to do is change the line in the .list file from:
> deb http://ppa.launchpad.net/chromium-daily/beta/ubuntu lucid main
> to:
> deb http://10.0.0.100:3142/ppa.launchpad.net/chromium-daily/beta/ubuntu
> lucid main
> on your local machines to use the cache to get updates. So the first
> machine that requests the file will cause it to be cached (ideally from
> a local mirror) and all subsequent machines will get the cached copy.

Rather than messing with your list files, simply create a file called
"01proxy" in /etc/apt/apt.conf.d/ with the following line:

  Acquire::http::Proxy { "http://proxy:3142"; };

Then all you need to do is enable and disable this line.

-- 
Raoul Snyman, B.Tech IT (Software Engineering)
Saturn Laboratories
m: 082 550 3754
e: raoul.snyman at saturnlaboratories.co.za
w: www.saturnlaboratories.co.za
b: blog.saturnlaboratories.co.za



More information about the ubuntu-za mailing list