[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-cacher-ng related program and package suggestion



On Wed, Jun 14, 2017 at 09:57:50PM +0200, tuxderlinuxfuchs77@gmail.com wrote:
> The shown way is not very comfortable.
> 
> 1. it is annoying having to remember IP addresses
> 2. sed command is error prone (consider typos, etc.)
> 3. copying around backup files is time consuming having to type in all
> the paths
> 4. typing in sed command or searching it in bash history for re-using is
> time consuming, too.
> 

Simple workaround for now:

/etc/apt/sources.list:
----
deb http://site1.ip.address/debian jessie-backports main
#deb http://site2.ip.address/debian jessie-backports main
----

Now just change the comment from one to the other, run apt-get
update and go.

Second workaround, if you have lots of entries to be switched:
create two sources.list files, named home.list and uni.list.

When you move from place to place, copy the appropriate one 
in to /etc/apt/sources.list and run apt-get update.

-dsr-


Reply to: