| Linux Forum Index » Linux Miscellaneous Topics » rpms... |
|
Page 1 of 1 |
|
| 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 |
|
|
| Back to top |
|
|
|
| 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` |
|
|
| Back to top |
|
|
|
| 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. |
|
|
| Back to top |
|
|
|
| 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 |
|
|
| Back to top |
|
|
|
| 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 |
|
|
| Back to top |
|
|
|
|