Checking if program is installed

Alexander Dalloz ad+lists at uni-x.org
Wed Mar 23 18:13:33 UTC 2005


Am Mi, den 23.03.2005 schrieb Dotan Cohen um 18:41:

> > rpm -qa | grep 'program-name'

The grep search expression should be a part of the real RPM name in this
case, to make sense this way. So if you look for all RPMs installed with
"gnome" in their name:

rpm -qa | grep "gnome"

If you know the exact name of the program in question

rpm -q iptraf

is much more efficient as it does not first lists all rpm registered
packages and then filters output of the list with grep.

> Wow, thanks. Didn't find a thing...
> 
> I know that this program may have 'funny' capitilization, so is there
> a case-insensitive way to grep?

"man grep" :) will point you to parameter "-i"

By the way, you can too use "yum list installed". It takes to regular
expressions, see "man yum":

yum list installed [regexp1] [...]

> Dotan Cohen

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.770_FC2smp 
Serendipity 19:07:06 up 6 days, 17:03, load average: 0.29, 0.39, 0.46 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050323/8929a165/attachment-0001.sig>


More information about the fedora-list mailing list