On 3/19/26 03:35, Nikos Vassiliadis wrote:
> On 3/19/26 12:14, vermaden wrote:
>> Hi.
>>
>>
>> Temat: pkg upgrade with inverting match?
>> Data: 2026-03-19 10:34
>> Nadawca: "Nikos Vassiliadis" <[email protected]>
>> Adresat: [email protected];
>>
>>
>>>> Hi,
>>>
>>> Is there a way to invert a match when upgrading? Since I've started
>>> using pkgbase I find myself wanting to upgrade only non-base packages
>>> and I haven't found a quick way to do it. It would be great to have
>>> an option to invert -g or -x matches.
>>>
>>> Thanks,
>>> Nikos
>>
>> You can upgrade only with specified 'FreeBSD-ports' and 'FreeBSD-
>> ports-kmods' repos:
>>
>> root@freebsd15:~ # pkg upg -r FreeBSD-ports -r FreeBSD-ports-kmods
>> Updating FreeBSD-ports repository catalogue...
>> FreeBSD-ports repository is up to date.
>> Updating FreeBSD-ports-kmods repository catalogue...
>> FreeBSD-ports-kmods repository is up to date.
>> FreeBSD-ports, FreeBSD-ports-kmods are up to date.
>> Checking for upgrades (0 candidates): 100%
>> Processing candidates (0 candidates): 100%
>> Checking integrity... done (0 conflicting)
>> Your packages are up to date.
>>
>> So PKGBASE 'Base System' will not be upgraded because its in the
>> 'FreeBSD-base' repo.
> 
> Hi vermaden,
> 
> Oh yes, that does what I asked for. Thank you!
> 
> For completeness reasons I think it would be nice to add an option to
> pkg to invert matches. Maybe it should invert -r as well!

There is, in general, not a fixed list of repos. Folks can have their
own and also use some or all of the ones that FreeBSD provides.
Inversion of the -r list is rather open ended without being explicit.
Such would be unsafe for general scripting uses, for example.

> 
> Regards,
> Nikos
> 
> 
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com

Reply via email to