• RE: pkg upgrade with inverting match? (proposal)

    From vermaden@vermaden@interia.pl to muc.lists.freebsd.stable on Fri Mar 20 10:54:27 2026
    From Newsgroup: muc.lists.freebsd.stable

    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




    Temat: Re: pkg upgrade with inverting match?
    Data: 2026-03-19 16:24
    Nadawca: "Kurt Jaeger" <pi@freebsd.org>
    Adresat: "Charles Sprickman" <spork@bway.net>;
    DW: "freebsd-stable@FreeBSD.org" <freebsd-stable@freebsd.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@FreeBSD.org +49 171 3101372 Now what ?



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Sulev-Madis Silber@freebsd-stable-freebsd-org730@ketas.si.pri.ee to muc.lists.freebsd.stable on Fri Mar 20 14:21:56 2026
    From Newsgroup: muc.lists.freebsd.stable

    sure you want "packages" there? not ports?
    they are all packages after all, some of them are base, some of them are ports so upgrade packages upgrades what?
    On March 20, 2026 11:54:27 AM GMT+02:00, vermaden <vermaden@interia.pl> 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




    Temat: Re: pkg upgrade with inverting match?
    Data: 2026-03-19 16:24
    Nadawca: "Kurt Jaeger" <pi@freebsd.org>
    Adresat: "Charles Sprickman" <spork@bway.net>;
    DW: "freebsd-stable@FreeBSD.org" <freebsd-stable@freebsd.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@FreeBSD.org +49 171 3101372 Now what ?


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mark Millard@marklmi@yahoo.com to muc.lists.freebsd.stable on Fri Mar 20 11:20:57 2026
    From Newsgroup: muc.lists.freebsd.stable

    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


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From vermaden@vermaden@interia.pl to muc.lists.freebsd.stable on Sat Mar 21 20:37:23 2026
    From Newsgroup: muc.lists.freebsd.stable



    sure you want "packages" there? not ports?

    they are all packages after all, some of them
    are base, some of them are ports

    so upgrade packages upgrades what?

    We can argue about naming or 'language' semantics
    or we can focus on finding some common solution ...

    It can also be:

    # pkg upgrade-ports

    # pkg upgrade-base





    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21f-Linux NewsLink 1.2