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.