Re: Checking if program is installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux