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命令了!