How to fix semanage command not found

Batteries are not always included

Mon, 15 Oct 2018

Unsplash You may get this message when you try to run the semanage command using a fresh CentOS 7 install. You need to first find what yum package contains the command:

yum provides /usr/sbin/semanage

Which should give you the package you need to add, which at the time of writing this post was:

policycoreutils-python

All you need to do now in a simple yum install like so:

yum install policycoreutils-python

For reference, if you are wondering what semanage is for, from the documentation: semanage is used to configure certain elements of SELinux policy with-out requiring modification to or recompilation from policy source.

SHARE
André Wanlin

André Wanlin is a Full Stack Developer and Team Leader at Petline Insurance Company, where André leads application development, including system administration and support. André has worked in .NET since 2008 and is passionate about DevOps and development methodologies like Lean, Agile, Scrum and Kanban. He loves to talk about Azure DevOps (formerly Team Foundation Server). André is a dog owner, an avid concert goer, and traveler from Winnipeg, Manitoba. You can reach him at andre@wanlin.ca or go to andre.wanlin.ca or you can catch him walking his dog at one of the many dog parks in the city.