Web lists-archives.com

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




On Thu, Jun 15, 2017 at 10:16:45AM -0400, Dan Ritter wrote:
On Wed, Jun 14, 2017 at 09:57:50PM +0200, tuxderlinuxfuchs77@xxxxxxxxx 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.

Of course, if site1 and site2 are not accessible from each other AND
you're willing to accept errors from apt, you can keep both enabled. apt
will complain that it can't update some repositories, but as both
provide the same packages, that's not a problem.


-dsr-


--
For more information, please reread.

Attachment: signature.asc
Description: PGP signature