Re: a specific rpm --query mode.
Stephen John Smoogen <[email protected]> Fri, 27 Mar 2009 09:54:39 -0600
| Newsgroups | gmane.linux.redhat.rhn.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 27, 2009 at 8:33 AM, Christopher L. Barnard <[email protected]> wrote: > I think an RPM is not used, so I want to delete it. But before I do I > want to find out if any other RPMs that are installed rely upon it. I > can use rpm --query --requires RPMNAME to find out what other RPMs must > be installed for RPMNAME to work. But what I am looking for is a way to > find out if other RPMs rely on RPMNAME being there. How would I do > this? I do not see the option in the rpm man page or a google search... Well the real ugly way is rpm -e and see what complains :). There is the rpm -q --whatrequires <CAPABILITY> which should help [smooge@bakeneko Desktop]$ rpm -q --whatrequires passwd usermode-1.99-3.x86_64 [smooge@bakeneko Desktop]$ rpm -q --whatprovides passwd passwd-0.76-2.fc11.x86_64 Hope this helps. -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice"