1.
find out which shared library package contains this shared library file: One quick and easy way to do this is to simply enter the name of the shared library into the Google Linux search at . If you enter the text libcrypto.so into this search page, you'll quickly learn that this shared library is provided by the openssl package.
摘自《Linux Enterprise Cluster》
2. 查看某个rpm依赖哪些库/文件, 比如要找到expect这个rpm包依赖哪些文件, 这样:
# rpm -Rq expect
/bin/sh
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)
libdl.so.2
libexpect5.43.so
libm.so.6
libm.so.6(GLIBC_2.0)
libpthread.so.0
libtcl8.5.so
libutil.so.1
libutil.so.1(GLIBC_2.0)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
# -R, --requires
List packages on which this package depends.
# yum provides *libtcl*
# 这样就可以知道需要哪个rpm包来提供这个库文件
阅读(2980) | 评论(0) | 转发(0) |