apt-cacher on a roaming laptop

Roby electricalsciences at adelphia.net
Tue Jun 5 12:01:00 UTC 2007


Carl Karsten wrote:

> so in my 'lab' I have apt-cacher setup so that all my boxes hit a local
> 'proxy'
> which is great.  except that my laptop is setup for that too, which is
> fine 99% of the time, but not so good when I try to install something when
> I am on the
> road.  I could flip all my repos around in sources.list, but that seems
> 'wrong' - is there a right way to deal with this?
> 
> Carl K
One way:
cp sources.list sources.list-lab
Edit sources.list to "flip all your repos around"
mv sources.list sources.list-road
ln -s sources.list-lab sources.list

Now write a tiny script that handles replacing
that symlink when you're on the road, and back
when you're not.





More information about the ubuntu-users mailing list