On 8 Aug 2025, at 15:59, DutchDaemon - FreeBSD Forums Administrator
<[email protected]> wrote:
>
> On 8/8/2025 4:20 PM, David Chisnall wrote:
>> Every upgrade flow I have on every FreeBSD machine I use is simplified by
>> pkgbase. Having fewer tools is a usability win. Having a single command
>> upgrade everything is a usability win. If you*want to* upgrade only some
>> things, that’s one extra command-line flag.
> Just to clarify things from an inverse perspective: in a pkgbase scenario,
> how would one go about deleting all ports, and only ports? What would the new
> pkg command be?
It should be `pkg del -r {repo name}`.
It is not, currently, because (unlike the install commands), `pkg delete` does
not accept the `-r` flag (presumably because the only place where it makes
sense is in concert with the `-a` flag and no one thought of that use case).
I think that’s a bug, it should probably be fixed. And now we have a
meaningful and actionable requirement. I have filed this issue:
https://github.com/freebsd/pkg/issues/2494
David