I stuck on –bash : semanage : command not found on Redhat/CentOS 7. I often use the minimal installed Redhat/CentOs Server.

The semanage is SElinux Policy Management Tool.

This happened as there is a package missing name policycoreutils-python-2.5-22.el7.x86_64 on your machine.

To get semanage command , you will have to install this package on your server

You can find the package by yum provides  /usr/sbin/semanage

Install

Yum install policycoreutils-python-2.5-22.el7.x86_64

After Installation of Packages, It will show you the path of Semanage

Which semanage

You’re done.

Sponsored

LEAVE A REPLY

Please enter your comment!
Please enter your name here