> On 17 Jul, 2017, at 11:13, Patrick Powell <[email protected]> wrote:
>
> On 07/16/17 22:21, Matthias Apitz wrote:
>> El día lunes, julio 17, 2017 a las 05:10:06a. m. +0000, Thomas Mueller
>> escribió:
>>
>>> How do I get pkg to recognize a local repository such as
>>> /mnt/usr/packages/All, or does pkg only recognize remote repositories?
>>>
>>> ...
>> I use:
>>
>> $ 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 }
>>
>> $ cat /usr/local/etc/pkg/repos/myrepo.conf
>>
>> FreeBSD: {
>> url: "file:///usr/local/PKGDIR.20170304",
>> enabled: true,
>> }
>>
>> HIH
>>
>> matthias
>
> 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
--
Adam Weinberger
[email protected]
https://www.adamw.org
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"