Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2026 12:35:49 +0200
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        vermaden <vermaden@interia.pl>, "freebsd-stable@FreeBSD.org" <freebsd-stable@FreeBSD.org>
Subject:   Re: pkg upgrade with inverting match?
Message-ID:  <78216885-a40b-4247-94f3-0c0fd6cba7bd@gmx.com>
In-Reply-To: <lsbeaiwlskwlprcnbmye@swnc>
References:  <59ce425f-77a5-409f-a307-b54541addc90@gmx.com> <lsbeaiwlskwlprcnbmye@swnc>

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

On 3/19/26 12:14, vermaden wrote:
> Hi.
> 
> 
> Temat: pkg upgrade with inverting match?
> Data: 2026-03-19 10:34
> Nadawca: "Nikos Vassiliadis" &lt;nvass@gmx.com>
> Adresat: freebsd-stable@FreeBSD.org;
> 
> 
>>> 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!

Regards,
Nikos




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78216885-a40b-4247-94f3-0c0fd6cba7bd>