rpm 相关 依赖

Posted by 老沙
10月 26 2009

查看一个rpm包的依赖
如果是本地的包,没有安装过的
rpm -qRp 包名

[root@mydisk ~]# rpm -qR /home/linux/tools/VMware-Workstation-6.5.2-156735.x86_64.rpm
package /home/linux/tools/VMware-Workstation-6.5.2-156735.x86_64.rpm is not installed
[root@mydisk ~]# rpm -qR /home/linux/tools/VMware-Workstation-6.5.3-185404.x86_64.bundle
package /home/linux/tools/VMware-Workstation-6.5.3-185404.x86_64.bundle is not installed
[root@mydisk ~]# rpm -qR /home/linux/tools/tftp-server-0.32-4.i386.rpm
package /home/linux/tools/tftp-server-0.32-4.i386.rpm is not installed
[root@mydisk ~]# rpm -qRp /home/linux/tools/tftp-server-0.32-4.i386.rpm
warning: /home/linux/tools/tftp-server-0.32-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
/bin/sh
/bin/sh
config(tftp-server) = 0.32-4
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.3)
libnsl.so.1
libwrap.so.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
xinetd

如果是已安装过的用
rpm -qR 包名

[root@mydisk ~]# rpm -qR dhcp
/bin/sh
/bin/sh
/bin/sh
/bin/sh
chkconfig
chkconfig
config(dhcp) = 12:4.1.0p1-2.fc11
coreutils
initscripts
initscripts
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
libcrypto.so.8
liblber-2.4.so.2
libldap-2.4.so.2
policycoreutils
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)

Trackback URL for this entry