On 8 Aug 2025, at 15:56, David Chisnall <thera...@freebsd.org> wrote:
> 
> On 8 Aug 2025, at 14:42, Dag-Erling Smørgrav <d...@freebsd.org> wrote:
>> 
>> Tomek CEDRO <to...@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.

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".

-Dimitry


Reply via email to