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 myself.
>
> e.g. from this :
>
> avahi-0.6.16-1.el5
> avahi-glib-0.6.16-1.el5
>
> produce this :
>
> avahi
> avahi-glib
>
> thanks,
> -Alan

No need fro sed here use rpms --querformat switch, see manpage of rpm
for details.

Chris


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | 
Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | 
Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis 
Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID 
number/St.Nr.: DE205 370 553
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to