• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

semanage command not found on CentOS 7 and RHEL 7

October 7, 2014 by Sharad Chhetri 2 Comments

This time again I stuck with -bash: semanage: command not found on CentOS 7 and RHEL 7 (Red Hat Enterprise Linux 7) . I mostly use the minimal installed CentOS/RHEL Servers. I got the same issue with semanage command not found on CentOS 6/RHEL 6

The semanage is SELinux Policy Management tool.

To get semanage command on system, install policycoreutils-python package by using yum command.

yum install policycoreutils-python

And I hope , it will be installed without any problem.

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

[root@localhost ~]# which semanage
/usr/sbin/semanage
[root@localhost ~]#

Important Note:
Basically you should know , why I selected only policycoreutils-python to be installed. I have written about this already in my previous post. would like to suggest this post – yum : how to find rpm package which has certain command or file

[root@localhost ~]# yum provides semanage
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * extras: mirror.nbrc.ac.in
 * updates: centosh2.centos.org
base/7/x86_64/filelists_db                                                                                                | 5.8 MB  00:00:12     
extras/7/x86_64/filelists_db                                                                                              |  54 kB  00:00:00     
http://centosh2.centos.org/centos/7.0.1406/updates/x86_64/repodata/f39377219ecae6bf98c525d6a789ac92127f15729685214cd5030c61926c828a-filelists.sqlite.bz2: [Errno 12] Timeout on http://centosh2.centos.org/centos/7.0.1406/updates/x86_64/repodata/f39377219ecae6bf98c525d6a789ac92127f15729685214cd5030c61926c828a-filelists.sqlite.bz2: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
updates/7/x86_64/filelists_db                                                                                             | 2.1 MB  00:00:04     
policycoreutils-python-2.2.5-11.el7.x86_64 : SELinux policy core python utilities
Repo        : base
Matched from:
Filename    : /usr/sbin/semanage



policycoreutils-python-2.2.5-11.el7_0.1.x86_64 : SELinux policy core python utilities
Repo        : updates
Matched from:
Filename    : /usr/sbin/semanage



[root@localhost ~]#

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. semanage command not found in CentOS 6 and RHEL 6
  2. Allow only members of Wheel group to use su command on RHEL/CentOS
  3. FAQ on CentOS 7 / RHEL 7 : Alternate of ifconfig command
  4. smbpasswd command not found on CentOS 7 and RHEL 7
  5. create a system account below uid 500 on RHEL/CentOS/Scientific Linux
  6. netstat command not found on CentOS 7 and RHEL 7 (Red Hat Enterprise Linux 7)
  7. Command to create and delete group in Red Hat and CentOS linux
  8. man command not found in CentOS and Red Hat
  9. Install libjpegtran by using yum command in CentOS 6.x
  10. How To Find Absolute Full Path Of Command On Linux / Unix : which command

Filed Under: Linux Commands Tagged With: linux command, selinux, semanage

Reader Interactions

Comments

  1. sharad chhetri says

    March 27, 2015 at 6:41 pm

    Wow, Thankyou Jaime, feedback is always helpful.

    Linux rocks !

    – Sharad

  2. Jaime Lopez says

    March 27, 2015 at 5:02 pm

    Hey buddy, I’ve found very useful info right here in your site. First time I tested a minimal installation, I was fighting with SELinux config and then I came up with your site. Congratulations for your efforts; you have made happy a sysadmin in Mexico. Regards!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Commands

FAQ on CentOS 7 / RHEL 7 : Alternate of ifconfig command

Linux / Unix : whoami command use and advantage

How to free pagecache, dentries and inodes from memory on linux

Eject Command: Eject DVD-ROM Or CD-ROM In Linux

semanage command not found in CentOS 6 and RHEL 6

Linux Basic Commands With Examples For Every Beginner

awk command to print columns from file

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

Convert video file into gif file through command line in linux

How to put slider shortcode only in home page in WordPress

error command ‘gcc’ failed with exit status 1 in Ubuntu

How to download package using apt-get command in ubuntu

Allow only members of Wheel group to use su command on RHEL/CentOS

Password prompt in single user mode is not secure : CentOS/Red Hat

Convert hyphen to underscore in between all filenames shell script

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy