首页 » Linux » centos rpm 安装时依赖包查找方法

centos rpm 安装时依赖包查找方法

 

命令运行之后出错:

error: Failed dependencies:
    libcrypto.so.6()(64bit) is needed by couchbase-server-2.0.0-1976.x86_64
    libssl.so.6()(64bit) is needed by couchbase-server-2.0.0-1976.x86_64

根据上面的错误提示,寻找包含 libcrypto.so.6 的安装包,运行下面的命令:

yum provides */libcrypto.so.6

[root@7-node4 ~]# yum provides */libcrypto.so.6
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base/7/x86_64/filelists_db | 6.2 MB 00:15 
docker-main-repo/filelists_db | 21 kB 00:00 
epel/x86_64/filelists_db | 7.3 MB 00:18 
extras/7/x86_64/filelists_db | 467 kB 00:00 
nginx/x86_64/filelists_db | 12 kB 00:00 
salt-latest/7/x86_64/filelists_db | 71 kB 00:00 
updates/7/x86_64/filelists_db | 5.0 MB 00:11 
openssl098e-0.9.8e-29.el7.centos.2.i686 : A compatibility version of a general
 : cryptography and TLS library
Repo : base
Matched from:
Filename : /usr/lib/libcrypto.so.6
openssl098e-0.9.8e-29.el7.centos.2.x86_64 : A compatibility version of a general
 : cryptography and TLS library
Repo : base
Matched from:
Filename : /usr/lib64/libcrypto.so.6

发现 openssl098e-0.9.8e-17.el6.centos.2.x86_64

安装该版本的 opensll 包:

yum install openssl098e-0.9.8e-17.el6.centos.2.x86_64

这样就解析依赖包的安装,其它也是一样的方法可以查找出来.

原文链接:centos rpm 安装时依赖包查找方法,转载请注明来源!

0