Date: Fri, 8 Aug 2025 12:17:10 -0400 From: Daniel Morante <daniel@morante.net> To: stable@freebsd.org Subject: Re: PKGBASE Removes FreeBSD Base System Feature Message-ID: <2a0322c7-d1f6-498d-8812-b020db985fea@morante.net> In-Reply-To: <5E8775DE-4CD8-496E-8AC0-55BDFAAC3697@bway.net> References: <zxdjhwcktnktdqzisgzy@qkoz> <FD0B239A-7DE4-4588-840E-C31FBBECBBEF@submonkey.net> <pecwwvnjxkiaplcpxkph@fpas> <DA41BBC2-6AD6-44FC-8C0A-213D63DBFF15@ketas.si.pri.ee> <ckjuzadqerchrokhlejz@pkwi> <ffd818ae-9922-413f-b8d8-acb7af51f865@freebsd.org> <CAFYkXjkKMpuJqZkt_x_kpFhMi2kSbJN1ydGK6y9JQeCXpX=MAQ@mail.gmail.com> <864iui3si5.fsf@ltc.des.dev> <CAFYkXjkf2NVQfv9_L=81bzK5ASxRzrfs4Jn9Jg2D0GxWUqTT2g@mail.gmail.com> <86pld62alk.fsf@ltc.des.dev> <0CC405ED-BCFC-41AD-A487-5261421BF8A6@FreeBSD.org> <BA8BBB0A-2FD8-43C2-B405-20FE136CD04D@FreeBSD.org> <5E8775DE-4CD8-496E-8AC0-55BDFAAC3697@bway.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
> Even better, the "-af" flag simply doesn't touch base. PKGBASE is new. Adding a single flag to pkg that indicates operations are being performed on the base system, or even minimally some warnings (who's going to spot a handful of base pkgs in a list of hundreds when running even an interactive purge of all pkgs?) when the command is run, why are people against simple measures like that? I really fail to see why the people creating this new feature, which I'm sure is useful for some vendor or other funding this stuff, cannot accept that there are actual, real, normal users out there who a) don't care about PKGBASE b) believe POLA adoption in the past is what has made this OS pretty great to use and c) don't see any value in doing a base upgrade and pkg upgrade at the same time (DES mentioned this as a feature, but I have no interest in upgrading two wildly different codebases at the same time and have never wanted to do that).
I think this is an acceptable compromise for now, but I would make one
change. It could be a flag, an environment variable, or a the way the
pkg command is invoked (based on file name if it's hard linked). When
invoked as simply 'pkg' it operates as it does now. We don't see any
base packages, we can't manage base packages, it's as if they don't
exist. If invoked as 'freebsd-setup' (suggestion for name), then we
only see base packages, we can only manage base packages, etc.
On 8/8/2025 12:09 PM, Charles Sprickman wrote:
>
>> On Aug 8, 2025, at 11:00 AM, Dimitry Andric <dim@freebsd.org> wrote:
>>
>> On 8 Aug 2025, at 15:56, David Chisnall <theraven@FreeBSD.org> wrote:
>>> On 8 Aug 2025, at 14:42, Dag-Erling Smørgrav <des@FreeBSD.org> wrote:
>>>> Tomek CEDRO <tomek@cedro.info> writes:
>>>>> [...] from user perspective these changes were easy to adapt to :-)
>>>> So will this one.
>>> Let’s remember the thing that started this entire thread: `pkg delete -af`
>>>
>>> This is an *incredibly* stupid thing to do. Long before pkg came along, I did the equivalent of this and managed to lock myself out of a headless box by doing this because I forgot that I was using the ports version of openssh instead of the base one.
>> I'm one of the people that regularly runs `pkg delete -af`, even with `-y` added. :) That said, I only use this when I have completely rebuilt a ports collection with poudriere against a newer base jail, and then I'd like to start completely from scratch with freshly installed packages. This also clears out any unnecessary non-leaf packages there were pulled in by a previous package build.
> Yeah, this thread is frustrating because on one hand we have users saying "here's why this is bad" and developers just saying "nobody does that" to someone who is doing that. There's no way to know how many people do that, and there's nothing productive in just saying those people are "using FreeBSD wrong". It's not like the handbook is going to teach you actual systems admin skills to the point where you know the "why's" of what you're doing.
>
> As an analogy, imagine a house. The house is the OS. The furniture is your collection of packages. If I call a mover to empty my house because the furniture no longer fits my needs, has been around too long or something and the mover takes all my furniture out and then plants explosives around the house to make it uninhabitable, that's not great.
>
>> Obviously that is an outlier scenario! But does pkg have a way to express "show me packages only from this particular repo", or "delete only packages from this particular repo"? That would make it easy to do "delete only the packages from ports, not from base".
> Even better, the "-af" flag simply doesn't touch base. PKGBASE is new. Adding a single flag to pkg that indicates operations are being performed on the base system, or even minimally some warnings (who's going to spot a handful of base pkgs in a list of hundreds when running even an interactive purge of all pkgs?) when the command is run, why are people against simple measures like that? I really fail to see why the people creating this new feature, which I'm sure is useful for some vendor or other funding this stuff, cannot accept that there are actual, real, normal users out there who a) don't care about PKGBASE b) believe POLA adoption in the past is what has made this OS pretty great to use and c) don't see any value in doing a base upgrade and pkg upgrade at the same time (DES mentioned this as a feature, but I have no interest in upgrading two wildly different codebases at the same time and have never wanted to do that).
>
> Charles
>
>> -Dimitry
>>
>>
>
[-- Attachment #2 --]
0 *H
010
`He 0 *H
00 0
*H
010 UUS10UFlorida10
UNaples1)0'U
The Daniel Morante Company, Inc.10UPacy World, LLC10UPacy World Root CA0
180707173531Z
280704173531Z010 UUS10UFlorida1)0'U
The Daniel Morante Company, Inc.10UPacy World, LLC1#0!UPacy World Intermediate CA0"0
*H
0
4,?6sK?-A\8z鹘̞y,'W!m${R
x뗹ЃQ rMUM݆j
56%,ҭO!]D GV'VzAc^e^h't@Q)K8L e{/a-*& ʃ0V5*rn]/"/,GS(ya<OgnbG<*~KReq1s?B۶Li9r
x^38-@.fpn*ǬG0TPpaMv e"wSAvmY2@;y}h"0LMPGR6IGׂ<D^|}ӔgM+Ȉ`($u7IѾavG>w5hpbfs[]yx'N_![4 HENϤDZ\%R|3>9"SjC3i_`Xd4a3 f0d0U| r6)A
]Dz)U0U#0zF;ߢl'+hH=v]0U0 0U0
*H
,O(r|AQQMlTFo۪+X:}|pNH
uzmg1jcHWi/oʢ"'s!
9&Y1yP-Hiu(s"/>B%g[6gdrKiS(xcBKkⅳP&G7dBoB{hLџ9c2jfWgv{Ȕ5 NQPdnH/Jv$4W <SVhUwv Φ
ayMa!}ڲN{}X<OoKpQLŲI.19 HEFa(
;.dNNƈZc33.
MPNBU<brI^+7@Rl]
g>$0?P;Cj_~"!?%IZ֜o@l<"Ҍ!wYqB{5"zZ
$~500i)0
*H
010 UUS10UFlorida1)0'U
The Daniel Morante Company, Inc.10UPacy World, LLC1#0!UPacy World Intermediate CA0
240224043548Z
270223043548Z010 UUS10UFlorida10
UNaples10U
Morante.net10UEmail10Udaniel@morante.net1!0 *H
daniel@morante.net0"0
*H
0
adTe>W4$$^r,Q.>~w^E"UOswH{CkyMIpSɳMQ5qmpG|z ]=XDOpQOp7%]<tldFdP |)3`fEN1WV{7".\X9w=7-Gb"Pܖ0Cm#z<(3Tji"PLtaf@!f\C7
#릴nOT[g)25e+qBCA+XP'>4;3ݩn=)%̅2;MFGT:>!~{l"t?Cp3R<ݰI?^Ulu&}). 5t.QIu
r9E$;gn{8-)bez;*Ô-0"k0'G 00 U0 0U0U*-
DuRɚJ0U#0| r6)A
]Dz)U0U0daniel@morante.net0'U% 0+++0;+/0-0++0http://www.pacyworld.com/ca.php0
*H
B}tTpbvȮ߶)yޑ-QPΩrbX8Z2$JƇtM/=Fbhkݖ%AmmkH M+{V$)@pQ;ir}?3%〒(E!1OzFi-.&G"t33rtcmGPs
S`ao -[˷eZ tI)o&j5+(aQj,
ަ>;h6|ЅIةD5TmVf<P0eS.?OsXMHie{RA
sKګqom &BWX 9mIJw(<7Q./fp%72'+-|}ާY:+jel.d>DD[!VG>E2G⏎duEfzԲoshث{100010 UUS10UFlorida1)0'U
The Daniel Morante Company, Inc.10UPacy World, LLC1#0!UPacy World Intermediate CA)0
`He .0 *H
1 *H
0 *H
1
250808161710Z0O *H
1B@UР0QjTagd
k `nnL#Nu([让@g0 +710010 UUS10UFlorida1)0'U
The Daniel Morante Company, Inc.10UPacy World, LLC1#0!UPacy World Intermediate CA)0*H
1010 UUS10UFlorida1)0'U
The Daniel Morante Company, Inc.10UPacy World, LLC1#0!UPacy World Intermediate CA)0W *H
1H0D0 `He*0 `He0
*H
0
*H
0
*H
0+0
*H
0+0 `He0 `He0 `He0 `He0 `He0 `He0 `He 0 `He
0 *H
0 +H? 0+ 0+0+0+0 +H? 0+ 0+0+0+0
*H
bߣjPE,S3LP*W3VQgQ9~+'BCQ=OJS;ʳ ߀Hюq6#UGD`hY;PEjh~Sކllb%t^^3nŚзM0QSHh$
9}e#47'R{Y2ON{эG/MoQt,!T;[-f*Ӑ6_GT<