Re: PKGBASE Removes FreeBSD Base System Feature

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Fri, 08 Aug 2025 08:31:34 UTC
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