Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2017 11:38:54 -0600
From:      Adam Weinberger <adamw@adamw.org>
To:        papowell@astart.com
Cc:        freebsd-ports@freebsd.org
Subject:   Re: How to get pkg to recognize local repository?
Message-ID:  <2DF2CE2E-5F38-41CF-92E2-6C224F7A2528@adamw.org>
In-Reply-To: <1daa2d98-89d5-c9b4-fd3e-5b34c4c7d7f8@astart.com>
References:  <CF.51.25924.DA64C695@dnvrco-omsmta02> <20170717052106.GC2368@c720-r314251> <1daa2d98-89d5-c9b4-fd3e-5b34c4c7d7f8@astart.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 17 Jul, 2017, at 11:13, Patrick Powell <papowell@astart.com> wrote:
>=20
> On 07/16/17 22:21, Matthias Apitz wrote:
>> El d=C3=ADa lunes, julio 17, 2017 a las 05:10:06a. m. +0000, Thomas =
Mueller escribi=C3=B3:
>>=20
>>> How do I get pkg to recognize a local repository such as =
/mnt/usr/packages/All, or does pkg only recognize remote repositories?
>>>=20
>>> ...
>> I use:
>>=20
>> $ ls -l /usr/local/etc/pkg/repos/*.conf
>> -rw-r--r--  1 root  wheel  35 12 mar.  11:05 =
/usr/local/etc/pkg/repos/FreeBSD.conf
>> -rw-r--r--  1 root  wheel  96 12 mar.  11:05 =
/usr/local/etc/pkg/repos/myrepo.conf
>> $ cat /usr/local/etc/pkg/repos/FreeBSD.conf
>>          FreeBSD: { enabled: no }
>>=20
>> $ cat /usr/local/etc/pkg/repos/myrepo.conf
>>=20
>>     FreeBSD: {
>>         url: "file:///usr/local/PKGDIR.20170304",
>>         enabled: true,
>>     }
>>=20
>> HIH
>>=20
>> 	matthias
>=20
> Just out of curiosity (and because I might want to do this) how can =
you specify two (or more) repositories
> and have them searched in some order.  For example,  you might have a =
local respository with some
> ports/packages that you are currently debugging/fixing.  You want pkg =
to search the local respository
> first and then if it does not find the packages to use the default =
(remote) repository.

myfirstrepo: {
	url: file:///path/to/first/repo,
	priority: 99
},
mysecondrepo: {
	url: file:///path/to/second/repo,
	priority: 98
}

# Adam



--=20
Adam Weinberger
adamw@adamw.org
https://www.adamw.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2DF2CE2E-5F38-41CF-92E2-6C224F7A2528>