Translate

Wednesday 20 August 2014

Check an RPM dependencies without having to install it

I have lost count of the number of times I have tried to install an RPM only to find that it has lots of dependencies and it takes a dozen or so attempts before I get to install it. If you use the "-qpR" flag you can actually see the contents of a package and its dependencies just by examining the RPM.

In this example you should only need to install "krb5-libs".

# rpm -qpR ./krb5-workstation-1.9.4-1.aix5.1.ppc.rpm
krb5-libs = 1.9.4-1
/sbin/install-info
info
/bin/sh
/bin/sh
libc.a(shr.o)
libcom_err.so
libgssapi_krb5.so
libgssrpc.so
libk5crypto.so
libkadm5clnt_mit.so
libkadm5srv_mit.so
libkdb5.so
libkrb5.so
libkrb5support.so
libpthreads.a(shr_comm.o)
libpthreads.a(shr_xpg5.o)
librtl.a(shr.o)

No comments:

Post a Comment