Search This Blog

2013-11-18

RPM Package Querying

I'll start this off with giving some information as to how to see what requirements there are to install a particular package.

This can be done using the -q (query) and -R (requires) options

For example, a common utility to install to monitor disk IO which requires a fairly updated kernel can be queried using
rpm -qR iotop
/usr/bin/python  
kernel >= 2.6.18-199
python  
python(abi) = 2.4
python-ctypes  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
We can see that this is a bit strange because I actually have iotop installed from yum but only have kernel version
uname -r
2.6.18-194.8.1.el5

References:
http://lists.centos.org/pipermail/centos/2012-March/124119.html
http://centos.1050465.n5.nabble.com/CentOS-iotop-OSError-Netlink-error-Invalid-argument-22-td5549789.html
https://bugzilla.redhat.com/show_bug.cgi?id=641496
https://bugzilla.redhat.com/show_bug.cgi?id=557062

No comments:

Post a Comment