Main Page | Report this Page
Linux Forum Index  »  Linux Miscellaneous Topics  »  rpms...
Page 1 of 1    

rpms...

Author Message
Bill Cunningham...
Posted: Sun Mar 08, 2009 2:01 pm
Guest
Can anyone tell me the switches to rpm to find out what program belongs
to what package?

Bill
 
Julian Bradfield...
Posted: Sun Mar 08, 2009 2:01 pm
Guest
On 2009-03-08, Bill Cunningham <nospam at (no spam) nspam.invalid> wrote:
....
Quote:
When I used rpm -qa I get a list of all installed rpms. But if I want to
find out for example what package diff belongs to I try rpm -qa diff and it
doesn't quite work.

rpm -qf `which diff`
 
Bit Twister...
Posted: Sun Mar 08, 2009 2:29 pm
Guest
On Sun, 8 Mar 2009 14:01:22 -0500, Bill Cunningham wrote:
Quote:
Can anyone tell me the switches to rpm to find out what program belongs
to what package?

If it were me, a quick look at man rpm would suggest two switches

QUERY OPTIONS
The general form of an rpm query command is

rpm {-q|--query} [select-options] [query-options]


-a, --all
Query all installed packages.
 
Bit Twister...
Posted: Sun Mar 08, 2009 3:57 pm
Guest
On Sun, 8 Mar 2009 16:28:15 -0500, Bill Cunningham wrote:

Quote:
I have tried exactly as you suggest here and can't seem to get it right.
When I used rpm -qa I get a list of all installed rpms. But if I want to
find out for example what package diff belongs to I try rpm -qa diff and it
doesn't quite work.

Hmmm,
$ rpm -qf /usr/bin/diff
diffutils-2.8.7-7mdv2008.1
 
Bill Cunningham...
Posted: Sun Mar 08, 2009 4:28 pm
Guest
"Bit Twister" <BitTwister at (no spam) mouse-potato.com> wrote in message
news:slrngr8741.bkr.BitTwister at (no spam) wm81.home.test...

Quote:
If it were me, a quick look at man rpm would suggest two switches

QUERY OPTIONS
The general form of an rpm query command is

rpm {-q|--query} [select-options] [query-options]


-a, --all
Query all installed packages.

I have tried exactly as you suggest here and can't seem to get it right.
When I used rpm -qa I get a list of all installed rpms. But if I want to
find out for example what package diff belongs to I try rpm -qa diff and it
doesn't quite work.

Bill
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Mon Dec 07, 2009 6:03 am