Re: pkg upgrade with inverting match? (proposal)
- In reply to: vermaden : "RE: pkg upgrade with inverting match? (proposal)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Mar 2026 18:20:57 UTC
On 3/20/26 02:54, vermaden wrote: > Added my proposal for additional pkg(8) aliases here: > - https://github.com/freebsd/pkg/issues/2626 > > In short: > > ``` > % grep -E 'FreeBSD-(p|b)' /usr/local/etc/pkg.conf > upgrade-packages = "upgrade -r FreeBSD-ports -r FreeBSD-ports-kmods"; > upg-pkgs = "upgrade -r FreeBSD-ports -r FreeBSD-ports-kmods"; > upgrade-base = "upgrade -r FreeBSD-base"; > upg-base = "upgrade -r FreeBSD-base"; > ``` > > So now one can: > > # pkg upgrade-packages > > To only upgrade pkg(8) 3rd party packages w/o touching PKGBASE Base System. > > ... and with that: > > # pkg upgrade-base > > To only upgrade PKGBASE Base System and do not mess with 3rd party software. > > Hope that helps. > > > Regards, > vermaden For "pkg upgrade" to work does require that the repo(s) listed to have been enabled. Using something like "-r FreeBSD-base" notation does not implicitly enable the repo, even temporarily. That prevents the update part of overall upgrade sequence if the repo is not enabled already. Unless there is also other activity for such enabling, the above requires that FreeBSD-base , FreeBSD-ports , and FreeBSD-ports-kmods to already be configured as enabled by default in the context. (Something for the man page(s) to note?) There is also the repo variability in naming conventions for those using 14.* and its unofficial pkgbase related status vs. 15.0+ and main that use the new, official repo naming convention (as above). Manual updating such 14.* contexts to use the new naming convention might be appropriate. (More for the man page(s) to note?) (Also: I've checked how recent poudriere(-devel) deals with the naming convention variations or the use of personal repos with yet other names.) > > > > > Temat: Re: pkg upgrade with inverting match? > Data: 2026-03-19 16:24 > Nadawca: "Kurt Jaeger" <pi-h+KGxgPPiopAfugRpC6u6w@public.gmane.org> > Adresat: "Charles Sprickman" <spork-jQk38rbXwng@public.gmane.org>; > DW: "freebsd-stable-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org" <freebsd-stable-h+KGxgPPiopAfugRpC6u6w@public.gmane.org>; > >> This is where bugs.freebsd.org waits for >> patches and submissions. >> >> And wiki.freebsd.org pages to update 8-} >> >> Well, at least, before the Big AI in the Sky >> comes to do all this for us 8-} >> >> -- >> pi-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org +49 171 3101372 Now what ? > > > -- === Mark Millard marklmi at yahoo.com