[CentOS] sed (or other) magic to get RPM base names ?

2009-09-21 Thread Alan McKay
Hey folks, Once upon a time I saw some sed magic to take the output of rpm -qa and strip away all the version info to give just the RPM base names. And of course I forgot to note it :-/ And have not been able to replicate it myself. e.g. from this : avahi-0.6.16-1.el5 avahi-glib-0.6.16-1.el5

Re: [CentOS] sed (or other) magic to get RPM base names ?

2009-09-21 Thread Ralph Angenendt
On Mon, Sep 21, 2009 at 3:06 PM, Alan McKay alan.mc...@gmail.com wrote: avahi-0.6.16-1.el5 avahi-glib-0.6.16-1.el5 produce this : avahi avahi-glib r...@knodd:~# rpm -qa --queryformat %{name}\n avahi\* avahi avahi-compat-libdns_sd avahi-glib r...@knodd:~# Ralph

Re: [CentOS] sed (or other) magic to get RPM base names ?

2009-09-21 Thread Christoph Maser
Am Montag, den 21.09.2009, 15:06 +0200 schrieb Alan McKay: Hey folks, Once upon a time I saw some sed magic to take the output of rpm -qa and strip away all the version info to give just the RPM base names. And of course I forgot to note it :-/ And have not been able to replicate it