Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2021 23:03:08 -1000
From:      "parv/freebsd" <parv.0zero9+freebsd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg-search - Querying the non-default repository (not for installing packages)
Message-ID:  <CABObuOrcnDhby7vbLnC8S5VvXPERNBQhPqc39P-hyUqzLPz0mA@mail.gmail.com>
In-Reply-To: <CABObuOoCOunuc3jj6tX9vcFUA%2By8Y-bWxRarKP%2BijN7ZJE3oAg@mail.gmail.com>
References:  <CABObuOr6m4=mfe4_49zUVeo6imzJmmVtbg8AYG=j2P_cOvtvgw@mail.gmail.com> <CABObuOoCOunuc3jj6tX9vcFUA%2By8Y-bWxRarKP%2BijN7ZJE3oAg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, Aug 11, 2021 at 10:54 PM parv/freebsd wrote:

> On Wed, Aug 11, 2021 at 10:36 PM parv/freebsd wrote:
>
>> I use "latest" repository via default "/etc/pkg/FreeBSD.conf" to install
>> packages on FreeBSD 13-STABLE. To be able to search quarterly branch via
>> "pkg-search -r" (able to supply a reponame even if not active per its
>> manual
>> page), I copied that file to "/usr/local/etc/pkg/repos/quarter.conf" ...
>>
>> quarter: {
>>   url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
>>   mirror_type: "srv",
>>   signature_type: "fingerprints",
>>   fingerprints: "/usr/share/keys/pkg",
>>   enabled: no,
>>   priority: 0
>> }
>>
>> ... but "pkg search -r quarter curl" does not work when "enabled: no".
>>
>> Is that not how package search supposed to work for a repository that is not active?
>>
>>
> Turns about I misread the manual page of pkg-search: "active" is actually
> a keyword,
> missing from "/etc/pkg/FreeBSD.conf". So after I have set to "no" --
> "active: no" --
> & set "enabled: yes", I was able to do the above query.
>

That is not it. 8-[

Now the issue is "pkg search curl" returns result from both default &
"quarter"
repositories. How does one set a repository to be non-active such that
unless it
is given, then pkg command would not use it by default?


- parv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOrcnDhby7vbLnC8S5VvXPERNBQhPqc39P-hyUqzLPz0mA>