About Linux FAQ

Browse More FAQs:

How do I find what dependencies a rpm file has?

Posted by Vivek Gite [Last updated: August 28, 2006]

RPM is a Package Manager for popular distribution such as Red Hat, Suse and many others. It is a powerful command line package management system for installing uninstalling, verifying, querying, and updating Linux computer software packages.

You can finding out what dependencies a rpm file has i.e. it will tell you what you need to install package with following command:
rpm -qpR {.rpm-file}
rpm -qR {package-name}

Find out what dependencies a uninstalled rpm file called mediawiki-1.4rc1-4.i586.rpm:
# rpm -qpR mediawiki-1.4rc1-4.i586.rpm

It will print list of dependencies on screen (output):

mod_php
php-session
php-gettext
php-zlib
php-mysql
ImageMagick-Magick++
tetex
cjk-latex
rpmlib(PayloadFilesHavePrefix)

However RPM has in build mechanism to tell you about dependencies. Just try to install package and it will give you list of dependencies.
# rpm -ivh mediawiki-1.4rc1-4.i586.rpm

Output:

error: Failed dependencies:
   mod_php is needed by mediawiki-1.4rc1-4
   php-session is needed by mediawiki-1.4rc1-4
   php-gettext is needed by mediawiki-1.4rc1-4
   php-zlib is needed by mediawiki-1.4rc1-4
   php-mysql is needed by mediawiki-1.4rc1-4
   ImageMagick-Magick++ is needed by mediawiki-1.4rc1-4
   tetex is needed by mediawiki-1.4rc1-4
   cjk-latex is needed by mediawiki-1.4rc1-4

Note:

  • .rpm file: File with .RPM extension. Typically this file is not installed. It may be on CD or you just downloaded from Internet.
  • package-name: It is installed RPM file.

You can solve dependencies problem by installing each individual package(s). If you are using Red hat Linux then you can try this tip. If you are using Fedora core Linux then try yum. If you are using Suse linux then use Yast to install rpms.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Hanh Nguyen Says:

    First thanks for help ,i can’t install Python 2.3.4-2.aix5.1.ppc.rpm without error dependencies libcrypto.a,libgdbm.a,libssl.a ;
    any experiences in installing “AIX rpms” for this inconvenient? with –nodeps ???

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.