Re: Post pkg_delete messages, change message format?

2016-03-26 Thread lists
Fri, 25 Mar 2016 12:47:01 -0500 Chris Bennett

> After I delete packages, especially pkg_delete -X, I get a long list of
> instructions like:
> 
You should also run rm -rf /
>
> 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.



Re: Post pkg_delete messages, change message format?

2016-03-26 Thread lists
Fri, 25 Mar 2016 20:27:08 -0700 Jeremy Evans 
> On Fri, Mar 25, 2016 at 10:47 AM, Chris Bennett <
> chrisbenn...@bennettconstruction.us> wrote:  
> 
> > 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:
> >
> >
> > --- -hplip-3.16.2 ---
> > You should also run
> > rm -rf /usr/local/share/hplip/data/firmware
> > rm -rf /usr/local/share/hplip/data/plugins
> > rm -rf /usr/local/share/hplip/fax/plugins
> > rm -rf /usr/local/share/hplip/prnt/plugins
> > rm -rf /usr/local/share/hplip/scan/plugins
> > rm -f /usr/local/share/hplip/plugin.spec
> >
> > This would make these commands very simple to run.
> >  
> 
> I agree.  The ruby ports already do this, and I think it would be a good
> idea for other packages to do so as well.

The way you present it, looks a lot more acceptable.  If only paste in
terminal can not break in the middle resulting in something similar to:

> > rm -rf /usr/local/share/hplip/data/firmware
> > rm -rf /usr/local/share/hplip/data/plugins
> > rm -rf /usr/local/share/hplip/fax/plugins
> > rm -rf /usr/local/share/hplip/prnt/plugins
> > rm -rf /usr^
: not found



Re: Post pkg_delete messages, change message format?

2016-03-26 Thread lists
Fri, 25 Mar 2016 14:54:12 -0500 Chris Bennett

> On Fri, Mar 25, 2016 at 09:32:19PM +0200, li...@wrant.com wrote:
> > Fri, 25 Mar 2016 12:47:01 -0500 Chris Bennett
> >   
> > > 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?



Re: Post pkg_delete messages, change message format?

2016-03-26 Thread Chris Bennett
On Sat, Mar 26, 2016 at 10:34:46AM +, Stuart Henderson wrote:
> On 2016/03/25 12:47, Chris Bennett wrote:
> > After I delete packages, especially pkg_delete -X, I get a long list of
> > instructions like:
> 
> ..
> 
> You know you can use pkg_delete -c if you want to remove these extra
> files?
> 

-c  Delete extra configuration file, mentioned as
   @extra file
 in the packing-list.

No, I didn't. This option in the man page was not clear to me.
Just to be clear, this does all of the rm -rf ... and things 
like dbus's be sure to update machine-id?

Chris



Re: Post pkg_delete messages, change message format?

2016-03-26 Thread Stuart Henderson
On 2016/03/25 12:47, Chris Bennett wrote:
> After I delete packages, especially pkg_delete -X, I get a long list of
> instructions like:

..

You know you can use pkg_delete -c if you want to remove these extra
files?



Re: Post pkg_delete messages, change message format?

2016-03-25 Thread Jeremy Evans
On Fri, Mar 25, 2016 at 10:47 AM, Chris Bennett <
chrisbenn...@bennettconstruction.us> wrote:

> 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:
>
>
> --- -hplip-3.16.2 ---
> You should also run
> rm -rf /usr/local/share/hplip/data/firmware
> rm -rf /usr/local/share/hplip/data/plugins
> rm -rf /usr/local/share/hplip/fax/plugins
> rm -rf /usr/local/share/hplip/prnt/plugins
> rm -rf /usr/local/share/hplip/scan/plugins
> rm -f /usr/local/share/hplip/plugin.spec
>
> This would make these commands very simple to run.
>

I agree.  The ruby ports already do this, and I think it would be a good
idea for other packages to do so as well.

Thanks,
Jeremy


Re: Post pkg_delete messages, change message format?

2016-03-25 Thread Michael McConville
Chris Bennett wrote:
> After I delete packages, especially pkg_delete -X, I get a long list
> of instructions like:

I have thought this before and it seems like a good idea to me. Patches
welcome, from my perspective.

> -2.1.3 ---
> You should also run rm -rf /etc/cups/*.conf.O /var/log/cups
> You should also run rm -rf /var/cache/cups
> You should also run rm -rf /var/spool/cups
> --- -cups-pdf-2.6.1p0 ---
> You should also run rm -rf /var/spool/cups-pdf/
> --- -dbus-1.10.8v0 ---
> Remember to update /var/db/dbus/machine-id
> Remember to update /etc/machine-id
> --- -dconf-0.24.0p1 ---
> You should also run rm -rf /etc/dconf/db/*
> You should also run rm -rf /etc/dconf/profile/*
> --- -foo2zjs-20140627p1 ---
> You should also run rm -f /usr/local/share/foo2hbpl/icm/*
> You should also run rm -f /usr/local/share/foo2hiperc/icm/*
> You should also run rm -f /usr/local/share/foo2hp/icm/*
> You should also run rm -f /usr/local/share/foo2lava/icm/*
> You should also run rm -f /usr/local/share/foo2oak/icm/*
> You should also run rm -f /usr/local/share/foo2qpdl/icm/*
> You should also run rm -f /usr/local/share/foo2slx/icm/*
> You should also run rm -f /usr/local/share/foo2xqx/firmware/*
> You should also run rm -f /usr/local/share/foo2zjs/firmware/*
> You should also run rm -f /usr/local/share/foo2zjs/icm/*
> --- -hplip-3.16.2 ---
> You should also run rm -rf /usr/local/share/hplip/data/firmware
> You should also run rm -rf /usr/local/share/hplip/data/plugins
> You should also run rm -rf /usr/local/share/hplip/fax/plugins
> You should also run rm -rf /usr/local/share/hplip/prnt/plugins
> You should also run rm -rf /usr/local/share/hplip/scan/plugins
> You should also run rm -f /usr/local/share/hplip/plugin.spec
> --- -hplip-common-3.16.2 ---
> You should also run rm -rf /var/log/hp/tmp/*
> You should also run rm -f /var/log/hp/* 2>/dev/null || true
> --- -net-snmp-5.7.3p6 ---
> You should also run rm -rf /var/net-snmp/*
> --- -sane-backends-1.0.25p2 ---
> You should also run rm -rf /var/spool/lock/sane/*
> 
> 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:
> 
> 
> --- -hplip-3.16.2 ---
> You should also run
> rm -rf /usr/local/share/hplip/data/firmware
> rm -rf /usr/local/share/hplip/data/plugins
> rm -rf /usr/local/share/hplip/fax/plugins
> rm -rf /usr/local/share/hplip/prnt/plugins
> rm -rf /usr/local/share/hplip/scan/plugins
> rm -f /usr/local/share/hplip/plugin.spec
> 
> This would make these commands very simple to run.
> 
> Chris Bennett
> 



Re: Post pkg_delete messages, change message format?

2016-03-25 Thread Chris Bennett
On Fri, Mar 25, 2016 at 04:51:40PM -0400, dan mclaughlin wrote:
> the magic of unix; you can work around this with some sed.

Funny how we never see the obvious thing right in front of us. I do
this sort of stuff all of the time, just never occurred to me to do
it here. Thanks.

That's why I always ask someone where something is when I search and
search and just can't find it. Happened earlier today, my dad just
couldn't find the spaghetti. :)

Chris



Re: Post pkg_delete messages, change message format?

2016-03-25 Thread Chris Bennett
On Fri, Mar 25, 2016 at 09:32:19PM +0200, li...@wrant.com wrote:
> Fri, 25 Mar 2016 12:47:01 -0500 Chris Bennett
> 
> > 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.

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

I run three versions of amd64.
5.7, 5.8, -current
I run three versions of i386.
5.7, 5.8, -current

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

I, personally, would find this change helpful.
This change would mean a lot of work, but not need to be done urgently
at all.
This change may have very valid reasons not 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".

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

Chris Bennett



Post pkg_delete messages, change message format?

2016-03-25 Thread Chris Bennett
After I delete packages, especially pkg_delete -X, I get a long list of
instructions like:


-2.1.3 ---
You should also run rm -rf /etc/cups/*.conf.O /var/log/cups
You should also run rm -rf /var/cache/cups
You should also run rm -rf /var/spool/cups
--- -cups-pdf-2.6.1p0 ---
You should also run rm -rf /var/spool/cups-pdf/
--- -dbus-1.10.8v0 ---
Remember to update /var/db/dbus/machine-id
Remember to update /etc/machine-id
--- -dconf-0.24.0p1 ---
You should also run rm -rf /etc/dconf/db/*
You should also run rm -rf /etc/dconf/profile/*
--- -foo2zjs-20140627p1 ---
You should also run rm -f /usr/local/share/foo2hbpl/icm/*
You should also run rm -f /usr/local/share/foo2hiperc/icm/*
You should also run rm -f /usr/local/share/foo2hp/icm/*
You should also run rm -f /usr/local/share/foo2lava/icm/*
You should also run rm -f /usr/local/share/foo2oak/icm/*
You should also run rm -f /usr/local/share/foo2qpdl/icm/*
You should also run rm -f /usr/local/share/foo2slx/icm/*
You should also run rm -f /usr/local/share/foo2xqx/firmware/*
You should also run rm -f /usr/local/share/foo2zjs/firmware/*
You should also run rm -f /usr/local/share/foo2zjs/icm/*
--- -hplip-3.16.2 ---
You should also run rm -rf /usr/local/share/hplip/data/firmware
You should also run rm -rf /usr/local/share/hplip/data/plugins
You should also run rm -rf /usr/local/share/hplip/fax/plugins
You should also run rm -rf /usr/local/share/hplip/prnt/plugins
You should also run rm -rf /usr/local/share/hplip/scan/plugins
You should also run rm -f /usr/local/share/hplip/plugin.spec
--- -hplip-common-3.16.2 ---
You should also run rm -rf /var/log/hp/tmp/*
You should also run rm -f /var/log/hp/* 2>/dev/null || true
--- -net-snmp-5.7.3p6 ---
You should also run rm -rf /var/net-snmp/*
--- -sane-backends-1.0.25p2 ---
You should also run rm -rf /var/spool/lock/sane/*

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:


--- -hplip-3.16.2 ---
You should also run
rm -rf /usr/local/share/hplip/data/firmware
rm -rf /usr/local/share/hplip/data/plugins
rm -rf /usr/local/share/hplip/fax/plugins
rm -rf /usr/local/share/hplip/prnt/plugins
rm -rf /usr/local/share/hplip/scan/plugins
rm -f /usr/local/share/hplip/plugin.spec

This would make these commands very simple to run.

Chris Bennett