How to figure out RPM dependencies
If you have access to YUM, YAST, APTITUDE, or other such package manager, you can generally rely on these tools to sort out dependencies for you. In a modern day linux system, you can just install a package and all the dependencies are figured out, downloaded, and installed for you.
But what if your system is disconnected from the world. What if your network is a stand-alone network with no access to repositories and external stores of packages. You might need to look at an RPM file and figure out what it needs, retrieve it by hand, and install the packages yourself.
$ rpm –query –package –requires xpad-2.14-2.fc8.ppc.rpm
====$ rpm -qpR xpad-2.14-2.fc8.ppc.rpm====
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
You don’t need to be root to use the rpm query commands. But you do need root privileges to install rpms.
====$ rpm -Uvh zvbi-fonts-0.2.30-1.fc8.ppc.rpm====
error: can't create transaction lock on /var/lib/rpm/__db.000