Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91247
  • 博文数量: 26
  • 博客积分: 1050
  • 博客等级: 少尉
  • 技术积分: 276
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-05 20:44
文章分类

全部博文(26)

文章存档

2010年(26)

我的朋友

分类: LINUX

2010-12-23 21:40:41

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包来提供这个库文件
阅读(1695) | 评论(1) | 转发(0) |
0

上一篇:umount 时出现"Device is busy"的解法

下一篇:没有了

给主人留下些什么吧!~~

chinaunix网友2010-12-26 17:36:05

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com