如何查找命令属于哪个安装包

yum whatprovides 命令名

例如

[root@localhost jenkins]# yum whatprovides semanage
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                              | 7.6 kB  00:00:00
 * base: ftp.sjtu.edu.cn
 * epel: ftp.iij.ad.jp
 * extras: ftp.sjtu.edu.cn
 * updates: ftp.sjtu.edu.cn
base                                                                                                              | 3.6 kB  00:00:00
epel                                                                                                              | 4.7 kB  00:00:00
extras                                                                                                            | 2.9 kB  00:00:00
updates                                                                                                           | 2.9 kB  00:00:00
(1/5): extras/7/x86_64/primary_db                                                                                 | 205 kB  00:00:01
(2/5): epel/x86_64/group_gz                                                                                       |  95 kB  00:00:01
(3/5): updates/7/x86_64/primary_db                                                                                | 3.0 MB  00:00:08
(4/5): epel/x86_64/updateinfo                                                                                     | 1.0 MB  00:00:21
(5/5): epel/x86_64/primary_db                                                                                     | 6.8 MB  00:00:57
epel/x86_64/filelists_db                                                                                          |  12 MB  00:00:15
extras/7/x86_64/filelists_db                                                                                      | 217 kB  00:00:00
updates/7/x86_64/filelists_db                                                                                     | 1.7 MB  00:00:01
policycoreutils-python-2.5-34.el7.x86_64 : SELinux policy core python utilities
Repo        : base
Matched from:
Filename    : /usr/sbin/semanage

如图安装policycoreutils-python-2.5-34.el7.x86_64 就可以用semanage命令了!
在这里插入图片描述


--------------------当你发现自己突然嫉妒起其他人时,就请安静下来学习吧!--------------------

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大鹅i

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值