Jaylon

导航

 

yum provides/whatprovides

 

[root@Centos-7 bin]# yum provides /lib64/libtinfo.so.5

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
ncurses-libs-5.9-14.20130511.el7_4.x86_64 : Ncurses libraries
Repo : @base
Matched from:
Filename : /lib64/libtinfo.so.5

====================================================
[root@Centos-8 lib64]# yum provides /usr/lib64/libtinfo.so.5.9

Repository extras is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Last metadata expiration check: 3:21:15 ago on Thu 02 Dec 2021 07:16:50 PM CST.
ncurses-compat-libs-6.1-9.20180224.el8.x86_64 : Ncurses compatibility libraries
Repo : @System
Matched from:
Filename : /usr/lib64/libtinfo.so.5.9

ncurses-compat-libs-6.1-9.20180224.el8.x86_64 : Ncurses compatibility libraries
Repo : base
Matched from:
Filename : /usr/lib64/libtinfo.so.5.9

ncurses-compat-libs-6.1-9.20180224.el8.x86_64 : Ncurses compatibility libraries
Repo : baseos
Matched from:
Filename : /usr/lib64/libtinfo.so.5.9


# yum whatprovides /usr/lib64/libtinfo.so.5.9


方法二:

确认命令的路径

# whereis pip

pip: /usr/bin/pip2.6 /usr/bin/pip

查找命令属于那个安装包

# rpm -qf /usr/bin/pip

python-pip-7.1.0-1.el6.noarch

列出这个rpm包中的所有文件


yum安装32与64的问题

[root@mac1 lib64]# yum search ncurses-compat
Repository extras is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Last metadata expiration check: 3:26:41 ago on Thu 02 Dec 2021 07:16:50 PM CST.
===================================================================== Name Matched: ncurses-compat ======================================================================
ncurses-compat-libs.x86_64 : Ncurses compatibility libraries
ncurses-compat-libs.i686 : Ncurses compatibility libraries

安装时选定完整的64的包名 进行安装以保万无一失

 

posted on 2021-12-20 10:33  Jaylon  阅读(307)  评论(0)    收藏  举报