If you have any suggestions or comments, and would prefer using email, please contact me at:
gngabriel29[REMOVETHISANDREPLACEWITHYOU-KNOW-WHAT]ymail.com

December 13, 2008

Query about specified rpm package

Hi everyone, welcome to today’s tutorial where we will learn how to do a query about a specific rpm package in linux using the command line.

1. type at command line:
rpm -qa | grep -i ‘bc’

note:
| is a pipe, used such that command on left of | provides input to ommand on right of |
in this case, long list of info for all installed packages is passed as input to grep command, which in this case, only shows you lines which contain (partly or completely) the word ‘bc’

the -i option for grep tells grep to make a case-insensitive search
the ‘value’ to search for in this case is bc, but it can be changed to any value you wish

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>. I unfortunately do not have a spoiler-code, so be sure mark spoilers well.



Anti-spam measure: please retype the above text into the box provided.