If you want to find which rpm contains a specific file in your linux system, you can use "rpm -qf" to get the package information.
opensuse:~ # rpm -qf /etc/vmware-tools/tools.conf
open-vm-tools-2008.09.03-5.49
opensuse:~ #
Find out what all dependencies on an package?
opensuse:~ # rpm -qR libgcrypt11
rpmlib(VersionedDependencies) <= 3.0.3-1
/bin/sh
/bin/sh
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
libgpg-error.so.0
rpmlib(PayloadIsLzma) <= 4.4.2-1
opensuse:~ #
How to list what all files are part of a package?
opensuse:~ # rpm -q --filesbypkg libgcrypt11-1.4.1-4.1
libgcrypt11 /lib/libgcrypt.so.11
libgcrypt11 /lib/libgcrypt.so.11.4.4
libgcrypt11 /usr/share/doc/packages/libgcrypt11
libgcrypt11 /usr/share/doc/packages/libgcrypt11/AUTHORS
libgcrypt11 /usr/share/doc/packages/libgcrypt11/COPYING
libgcrypt11 /usr/share/doc/packages/libgcrypt11/COPYING.LIB
libgcrypt11 /usr/share/doc/packages/libgcrypt11/ChangeLog
libgcrypt11 /usr/share/doc/packages/libgcrypt11/NEWS
libgcrypt11 /usr/share/doc/packages/libgcrypt11/README
libgcrypt11 /usr/share/doc/packages/libgcrypt11/THANKS
libgcrypt11 /usr/share/doc/packages/libgcrypt11/TODO
opensuse:~ #
No comments:
Post a Comment