Linux Commands and Scripts

semanage Command Not Found in CentOS

semanage is a SELinux Policy Management tool.With the help of semanage,we can configure the certain elements of SELinux policy without requiring modification to or recompilation from policy sources.

Error :

-bash: semanage: command not found

To fix the error:

We need to install the necessary package for getting semanage command.

# yum install policycoreutils-python -y

After installation check the semanage command. For more confirmation you can use which command.It will show absolute path of semanage command.

# which semanage

To know more about semanage. Read the man page of semanage.

# man semanage

Related Articles