Re: PKGBASE Removes FreeBSD Base System Feature

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Sat, 09 Aug 2025 12:10:17 UTC
David Greenman-Lawrence <dg@dglawrence.com> writes:
> FWIW, I do have an opinion on this: I think that "pkg delete -af" is a
> useful thing that should not destroy your base system.

If you want to delete all packages that aren't vital to the system's
functioning, just run `pkg delete -a`.  That will leave you with
whatever packages were locked or marked vital (normally FreeBSD-clibs
and FreeBSD-runtime, which contain the most important libraries and
binaries) plus pkg itself (because pkg is hardcoded to never delete
itself unless forced to).

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