Eric Tanguy wrote:
Le mercredi 25 janvier 2006 à 13:08 +0000, Paul Howarth a écrit :
Eric TANGUY wrote:
How to know which packages (not files) are required by a local package
(not in a repository). Those already installed and those not installed.
$ rpm -q --requires name-of-installed-package
$ rpm -qp --requires name-of-some.rpm
Paul.
Thanks Paul but this command gives the files needed by the packages
whereas i'm looking for the list of the packages which contains theses
files. I'm not sure to well explain myself.
The --requires option shows the dependencies, which may be files,
packages or "virtual dependencies". All of these should be installable
using yum.
For example, if an RPM file has a listed dependency of
'perl(MIME::Base64)' (a virtual dependency), you can do:
# yum install 'perl(MIME::Base64)'
and yum will figure out the package that is needed, and install it.
What are you actually trying to do?
Paul.