运行下面的命令:
yum provides /usr/sbin/semanage
服务器输出:
[root@ca1 ~]# yum provides /usr/sbin/semanage
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.gtcomm.net
* extras: centos.mirror.vexxhost.com
* rpmforge: mirror.nexcess.net
* updates: centos.mirror.ca.planethoster.net
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
mariadb | 1.9 kB 00:00
mariadb/primary_db | 15 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
policycoreutils-python-2.0.83-19.30.el6.x86_64 : SELinux policy core python
: utilities
Repo : base
Matched from:
Filename : /usr/sbin/semanage
[root@ca1 ~]#
这里,我们可以看到如果这个命令需要使用,你需要安装 policycoreutils-python 包。