Fri, 25 Mar 2016 14:54:12 -0500 Chris Bennett
<chrisbenn...@bennettconstruction.us>
> On Fri, Mar 25, 2016 at 09:32:19PM +0200, li...@wrant.com wrote:
> > Fri, 25 Mar 2016 12:47:01 -0500 Chris Bennett
> > <chrisbenn...@bennettconstruction.us>  
> > > After I delete packages, especially pkg_delete -X, I get a long list of
> > > instructions like:
> > >   
> > You should also run rm -rf /  
> > >  
> 
> There was a diff to prevent this. Not sure if it was committed.

There was no diff in your proposal, this is not about previous anything.

The blatant example is to point out obvious flaws in your suggestion.

Having this change would encourage copy-paste tempting practice, which
is neither safe nor practical.

Processing the output with simple tools like cut and xargs is at your
disposal, if you are so burdened for a couple of repetitions.

> > > With this format, I have to copy/paste each rm -rf, groupdel, etc by hand.
> > > Could these messages be changed to something easier to use like:
> > >   
> > rm -rf /  
> > > 
> > > This would make these commands very simple to run.  
> > 
> > Mindlessly dead easy simple to run, even no need to paste, just pipe to
> > xargs and don't be tempted to cut, grep or tutorial forbade sed.  
> > > 
> > > Chris Bennett  
> > 
> > I 'ojbect' to your strip, it got diffed off.  
> 
> Ever set PKG_PATH wrong?

No.

> Ever wanted to clean out all packages while running -current upgrading
> to a new snapshot before doing a fresh install on next snapshot?

$ man pkg_delete

 -X     Delete everything, except the list of packages that follow.

An example to feed to your terminal (check it beforehand, please):

$ sudo pkg_delete -c -I -D baddepend -vv -m -X /var/db/pkg/*-firmware-[0-9]*

> I, personally, would find this change helpful.

Dangerously careless.  Let's see what others think too.

> This change would mean a lot of work, but not need to be done urgently
> at all.

Still no diff.

> This change may have very valid reasons not do it.

Here is why you could show more valid reasons to do it.

> It never hurts to ask reasonable questions. I did not search the mailing
> lists for a previous question about this. Asking this question at all
> may have been a waste of time since it has been addressed before. Which
> means I may have made a mistake in asking it "yet again".

Expand on a wrong idea does not make it right.  Anyway, it's about your
proposal here, and not previous posts.

> On the other hand, the openbsd web pages have just such a format for
> upgrades and following -current.

If you're pasting without reading, there are a lot of tutorial pages on
the internet as well for your fun (and profit).

No problem if you reply off list, maybe move this to misc@ interim?

Reply via email to