RH: List installed packages without version numbers

Sometimes it is pretty handyto have a list of installed packages without
the version numbers ( as input for a script ).


Normally you get this output :

# rpm -q openssh-clients


Use this command to get a list without version numbers :

# rpm -q openssh-clients –qf “%{NAME}\n”


It can also be done with sed on Linux :

$ rpm -q openssh-clients | sed ‘s/-[0-9].*$//’


Leave a comment

Your email address will not be published.


Fix this before you comment on this post * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.