Re: PKGBASE Removes FreeBSD Base System Feature

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Sat, 09 Aug 2025 06:53:05 UTC
On  8 Aug, Dimitry Andric wrote:
> On 8 Aug 2025, at 15:56, David Chisnall <theraven@FreeBSD.org> wrote:
>>=20
>> On 8 Aug 2025, at 14:42, Dag-Erling Sm=B8rgrav <des@FreeBSD.org> wrote:
>>>=20
>>> Tomek CEDRO <tomek@cedro.info> writes:
>>>> [...] from user perspective these changes were easy to adapt to :-)
>>>=20
>>> So will this one.
>>=20
>> Let=FFs remember the thing that started this entire thread: `pkg delete
>> -af`
>>=20
>> 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.
>=20
> 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.

pkg upgrade -af
pkg autoremove

> 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".
>=20
> -Dimitry
>=20
>=20