yum中查找程序由哪个包提供
有时候知道程序的名称,却不知道由那个包提供,也就是说不知道安装那个包,可以使用这个命令。
我们由provides关键字可以使用。
举例:semanage是SELinux的一个管理工具,可是我使用:yum install semanage
却提示我没有这个包。
祭出provides神器,反向查找:
yun provides semanage
输出:
[root@noi ~]# yum provides semanage
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base/7/x86_64/filelists_db | 6.6 MB 00:01
epel/x86_64/filelists_db | 8.0 MB 00:01
extras/7/x86_64/filelists_db | 925 kB 00:00
updates/7/x86_64/filelists_db | 3.3 MB 00:01
policycoreutils-python-2.5-8.el7.x86_64 : SELinux policy core python utilities
Repo : base
Matched from:
Filename : /usr/sbin/semanage
policycoreutils-python-2.5-9.el7.x86_64 : SELinux policy core python utilities
Repo : updates
Matched from:
Filename : /usr/sbin/semanage
policycoreutils-python-2.5-11.el7_3.x86_64 : SELinux policy core python
: utilities
Repo : updates
Matched from:
Filename : /usr/sbin/semanage
现在知道了:由policycoreutils-python这个包包提供。
yun install pollicycoreutils-python
搞定。
附加:官方对provides的解释,它还有一个别名whatprovides:
provides or whatprovides
Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to
list the packages available or installed that provide that feature or file.
最新文章
- IE8.0.6001这个版本执行JS报错
- ubuntu14.04 安装 hadoop2.4.0
- HTTP method POST is not supported by this URL
- sqlite - java 初学
- 【nodejs笔记4】搭建多人博客<;内含http请求的get post方法区别>;
- python之路二
- 一个比较有意思的C语言问题
- E-R图的基础练习
- N-Queens | &; N-Queens II
- 黄聪:VS2010开发T4模版引擎之基础入门
- e2e 自动化集成测试 架构 实例 WebStorm Node.js Mocha WebDriverIO Selenium Step by step (一) 京东 商品搜索
- node.js 针对不同的请求路径(url) 做出不同的响应
- 关于javascript输出中文乱码的问题
- 清华集训2014 day1 task2 主旋律
- HDU 1599 find the mincost route (无向图floyd最小环详解)
- 微信开源PHP商城系统一处blind xxe(无需登录,附POC)
- 类中被final修饰的成员变量需要初始化
- ivew ui
- centos7 搭建ntp时钟服务器
- Mac OS Sierra安装源不能设置任何来源(anywhere)
热门文章
- SQL SERVER 2008 数据库置疑处理办法
- delphi 杀死进程
- boost.asio包装类st_asio_wrapper开发教程(转)
- [Android Memory] Android系统中查看某个应用当前流量的方法
- salt-minion和salt-master之间如何重新认证
- 解决安装mysqlclient出现问题:mysql_config: not found
- Oracle判断两个时间段是否相交
- IP地址转换、主机大小端、htonl、ntohl实现
- PLSQL Developer连接远程Oracle方法(非安装client)
- log4j实现每一个线程保存一个日志文件