Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to solve an issue where my HTTPD is denied access to binding custom ports and I believe it has to do with SELinux. Whilst doing some googling I came across some posts where users were typing semanage followed with flags and commands to view certain data. In following these posts I too typed in semanage, but it's not on my system.

Results of yum list *semanage*:

Installed Packages
  libsemanage.x86_64 | 2.0.43-4.el6 | @anaconda-CentOS-201106060106.x86_64/6.0
Available Packages
  libsemanage-devel.x86_64 | 2.0.43-4.el6 | base                                    
  libsemanage-python.x86_64 | 2.0.43-4.el6 | base                                    
  libsemanage-static.x86_64 | 2.0.43-4.el6 | base

Is the binary available in one of these other packages?

share|improve this question
up vote 7 down vote accepted

The script is in the policycoreutils-python:

[root@kerberos home]# rpm -qf /usr/sbin/semanage

Installing via yum will give you the following:

 Package                                                            Arch                                               Version                                                          Repository                                           Size
 policycoreutils-python                                             x86_64                                             2.0.83-19.8.el6_0                                                updates                                             334 k
Installing for dependencies:
 audit-libs-python                                                  x86_64                                             2.0.4-1.el6                                                      base                                                 56 k
 libselinux-python                                                  x86_64                                             2.0.94-2.el6                                                     base                                                201 k
 libsemanage-python                                                 x86_64                                             2.0.43-4.el6                                                     base                                                 81 k
 setools-libs                                                       x86_64                                             3.3.7-4.el6                                                      base                                                400 k
 setools-libs-python                                                x86_64                                             3.3.7-4.el6                                                      base                                                222 k

Transaction Summary
Install       6 Package(s)
Upgrade       0 Package(s)
share|improve this answer
That's it! Thanks. Apparently yum allows us to do yum provides /usr/bin/semanage and it will also list out the packages with the binary. – Mike Purcell Dec 10 '11 at 0:50
Mine turned up in sbin rather than bin; the original command results in "no matches found"; 'yum provides seamanage' also same result but with suggestion to search for '*bin/seamanage', and that one does find matches. Something about a change in yum version 3. – gbarry Mar 9 '15 at 6:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.