当前位置: 移动技术网 > IT编程>开发语言>C/C++ > 如何查找命令属于哪个安装包

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

2020年07月16日  | 移动技术网IT编程  | 我要评论
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命令了!
在这里插入图片描述


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

本文地址:https://blog.csdn.net/ht9999i/article/details/107325631

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网