yum provides 反查询

在日常运维工作中,常常遇到需要安装一些依赖的库文件。在实际工作中,一次在Linux中安装SQL Server ODBC驱动时,遇到一个依赖的库文件需要安装(libcrypto.so.6)

可是使用yum provides命令查询libcrypto.so.6文件包含在哪个软件包中。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@manage final]# yum provides libcrypto.so.6
已加载插件:dellsysid, fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* epel: mirrors.opencas.cn
* extras: mirrors.btte.net
* rpmforge: ftp.riken.jp
* updates: mirrors.yun-idc.com
openssl098e-0.9.8e-18.el6_5.2.i686 : A compatibility version of a general cryptography and TLS library
Repo : base
匹配来自于:
Other : libcrypto.so.6

通过查询可以看出,libcrypto.so.6文件包含在openssl098e的软件包中,接下来只需要使用yum安装openssl098e即可解决依赖问题