rpm –test

Often times I need to install an rpm, which I didn’t get from a repo, that requires other dependencies. I used to try to install it and have it fail. But today I found –test, which is faster than doing a failed install.

So to see if you have all the needed dependencies try:

rpm -Uvh --test foo-1.2.i386.rpm

If everything looks good you see:
Preparing... ########################################### [100%]

Otherwise, you see a list of failed dependencies:

error: Failed dependencies:
       java-gcj-compat is needed by xml-commons-apis-1.3.03-0jpp.1.fc7.i386
       libgcj_bc.so.1 is needed by xml-commons-apis-1.3.03-0jpp.1.fc7.i386
       rtld(GNU_HASH) is needed by xml-commons-apis-1.3.03-0jpp.1.fc7.i386
Advertisements

One thought on “rpm –test

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s