Where do rpm dependancys come from ?

Posted on 2012-08-13
Last Modified: 2012-08-14
We are in an environment we can not just use yum to install stuff because in the past it has installed extra rpms that have crashed systems or were not approved.

Installing rpm's from the rpm -qvh command does not take care of dependencys very well ( it may install them our of order and fail a depenancy ).

How can I find out the discrepancys of an rpm without  actually installing it with Yum ?

Question by:TIMFOX123
    LVL 13

    Expert Comment


    that's a publicly available RPM/Dependency site that should let you download the dependencies.  

    If you're lucky, there will be a readme or an install file that will outline the dependencies required (And the dependencies for those dependencies).  Otherwise, you'll need to go thru the installer and download/install each dependency that is causing the package to fail.  The --test option will allow you to run the install without actually doing the install.  

    rpm-qvh --test package.rpm

    Author Comment


    some grate information on -- test

    Let me rephrase this, how does Yum know about the dependency and how can I tap into that without actually using yum for the actual install.
    LVL 44

    Accepted Solution

    $ sudo yum install whatever

    i.e. do not use the -y parameter, and it will stop, once it resolves all the dependencies, to ask if it should continue... you can just hit Enter at that point, because No is the default answer. All the dependencies for the whatever package will be listed right above that prompt.

    Author Closing Comment

    this works !!


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now