Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2018 14:23:02 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Two pkg(8) repo configs pointing to same repo
Message-ID:  <1058c8ba-ea67-da67-29a5-19f71ec8b31c@FreeBSD.org>
In-Reply-To: <1f9c9001-a6fa-55aa-2362-2b80d597b18f@yahoo.com>
References:  <1f9c9001-a6fa-55aa-2362-2b80d597b18f@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27/03/2018 13:56, Anthony Jenkins via freebsd-ports wrote:
> Is there a way to configure a pkg(8) repo such that it has multiple ways
> to refer to the same physical repository?  I'm picturing the "url:"
> parameter being either a string or a list of strings:
> 

That isn't possible with pkg(8) at the moment.  However, you don't need 
to change pkg(8) to achieve the effect you want.  You can have multiple 
repo.conf files enabled at the same time, so long as you make sure the 
tag is different between the two files.  pkg(8) will complain about 
being unable to contact one or other of the two, but I believe it should 
be capable of using just the server it can contact.

Failing that, you will need to take control of the DNS inside your home 
network, so you can make your server name resolve to whatever is correct 
depending on where you are.  Possibly you could just create an A record 
that resolves to the two different IPs, but I'm not sure how well pkg(8) 
handles that if one of the IPs is unreachable.

	Cheers,

	Matthew




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1058c8ba-ea67-da67-29a5-19f71ec8b31c>