Ben Hall wrote:
> Hi there,
> 
> Is there a way to get a list of all package names installed?  rpm -qa is
> close, but it gives name-version, I just want the name!
> 

I'm not sure if this is infallible, but ..


rpm -qa | sed "s/-[0-9].*//"

.. it assumes that all package names follow the convention that 
the version part starts with a - followed by a digit, and I'm 
not sure that's the case (although it definitely is for the 
majority at least)






-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to