Re: pkg upgrade with inverting match?
Paul Mather <[email protected]> Thu, 19 Mar 2026 09:42:56 -0400
| Newsgroups | gmane.os.freebsd.stable |
|---|---|
| Message-ID | <[email protected]> |
On Mar 19, 2026, at 7:29 am, Miroslav Lachman <[email protected]> wrote: > On 19/03/2026 11:35, Nikos Vassiliadis wrote: >> On 3/19/26 12:14, vermaden wrote: > > [..] > >>> You can upgrade only with specified 'FreeBSD-ports' and 'FreeBSD- ports-kmods' repos: >>> >>> root@freebsd15:~ # pkg upg -r FreeBSD-ports -r FreeBSD-ports-kmods > > [..] > >> 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! > > First and most important (at least for me) would be a clear separation of base system upgrades from 3rd packages, without having to enter 40-character-long arguments. The "pkg" command allows you to define aliases in pkg.conf. So, if you wanted to save on typing, you could, say, define "base-upgrade" and "ports-upgrade" aliases to restrict "pkg upgrade" to just the appropriate repositories. Cheers, Paul.