Re: PKGBASE Removes FreeBSD Base System Feature

From: vermaden <vermaden_at_interia.pl>
Date: Wed, 06 Aug 2025 17:40:36 UTC
> Because that’s what you asked for.
> Why would the command do anything other than that?
> If it did not, what command should and would you oppose it existing?

The problem is that the same 'pkg delete -af' command - will behave DIFFERENTLY with PKGBASE and without PKGBASE on the same FreeBSD version system - that is the center of the problem.

Everyone that use FreeBSD got used to the fact that pkg(8) command maintains only third party packages and Base System is untouched. With current state of PKGBASE FreeBSD is no different then a Linux distribution with yum/dnf/apt package manager - the Base System 'security' is broken.

Regards,
vermaden








Temat: Re: PKGBASE Removes FreeBSD Base System Feature
Data: 2025-08-06 18:45
Nadawca: "Ceri Davies" &lt;ceri@submonkey.net>
Adresat: "vermaden" &lt;vermaden@interia.pl>; 
DW: FreeBSD-pkgbase@freebsd.org; freebsd-stable@freebsd.org; freebsd-pkg@freebsd.org; freebsd-current@freebsd.org; 

>> On 30 Jul 2025, at 01:28, vermaden  wrote:
>> 
>> Hi,
>> 
>> after short discussion here:
>> - https://github.com/freebsd/pkg/issues/2485
>> 
>> I got REALLY concerned.
>> 
>> One of THE features and selling points of a FreeBSD UNIX system is
the 'untouchable' Base System.
>> 
>> Without PKGBASE all the features are preserved.
>> 
>> But when You convert to PKGBASE its ... GONE!
>> 
>> Consider this command:
>> 
>> # pkg delete -af
>> 
>> What it does?
>> 
>> It removes all third party packages on 'classic' FreeBSD system
without touching the FreeBSD Base System.
>> 
>> What the same "pkg delete -af" command does on a PKGBASE FreeBSD
system?
>> 
>> It kills/destroys almost all of the FreeBSD Base System and leaves
only two PKGBASE packages called:
>> 
>> - FreeBSD-clibs
>> - FreeBSD-runtime
>> 
>> All the rest of Base System is GONE. Destroyed.
>> 
>> You do not even have vi(1) editor ad /rescue is separate not
protected FreeBSD-rescue package and its also removed.
>> 
>> WTF?!
>> 
>> POLA is the principle that made FreeBSD such predictable system.
Where is the POLA now?
>> Why the same *pkg delete -af* command on 'classic' FreeBSD system
without PKGBASE only removes all third party packages and the same *pkg
delete -af* literally destroys most of the FreeBSD PKGBASE Base System?
> 
> Because that’s what you asked for.  Why would the command do
anything other than that?  If it did not, what command should and would you
oppose it existing?
> 
> Ceri 
> 
>