Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Aug 2025 10:31:34 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        sthaug@nethelp.no
Cc:        freebsd-current@freebsd.org,  freebsd-stable@freebsd.org
Subject:   Re: PKGBASE Removes FreeBSD Base System Feature
Message-ID:  <86h5yi43kp.fsf@ltc.des.dev>
In-Reply-To: <20250808.091053.1322595805169591390.sthaug@nethelp.no> (sthaug@nethelp.no's message of "Fri, 08 Aug 2025 09:10:53 %2B0200 (CEST)")
References:  <ckjuzadqerchrokhlejz@pkwi> <ffd818ae-9922-413f-b8d8-acb7af51f865@freebsd.org> <CAFYkXjkKMpuJqZkt_x_kpFhMi2kSbJN1ydGK6y9JQeCXpX=MAQ@mail.gmail.com> <20250808.091053.1322595805169591390.sthaug@nethelp.no>

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

sthaug@nethelp.no writes:
> - It's important to have a clean separation between the base system
> (whether that is installed using the package system or not) and the
> rest. An easy way to list "these are the base system packages" is
> absolutely needed.

You can easily create an alias for this:

    pkg query -e '%o = base' %n

If you want something closer to `pkg info`, try:

    pkg query -e '%o = base' '%n-%v %c' | column -tl 2

> - Maybe there should be an extra step if you try to delete packages
> from the base system?

There already is:

    % sudo pkg delete FreeBSD-clibs
    Checking integrity... done (0 conflicting)
    The following package(s) are locked or vital and may not be removed:
    
            FreeBSD-clibs
    
    1 packages requested for removal: 1 locked, 0 missing

The only matter that remains to be settled is which packages should be
marked vital:

    % pkg query -e '%V = 1' %n
    FreeBSD-clibs
    FreeBSD-runtime

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86h5yi43kp.fsf>