Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1448991
  • 博文数量: 263
  • 博客积分: 10851
  • 博客等级: 上将
  • 技术积分: 2627
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-26 22:40
文章分类

全部博文(263)

文章存档

2013年(4)

2012年(25)

2011年(33)

2010年(50)

2009年(138)

2008年(13)

分类: LINUX

2009-10-03 11:02:37

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包来提供这个库文件
阅读(2928) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~