[精讚] [會員登入]
7428

[Centos7] 安裝 semanage (selinux工具程式)

安裝selinux的工具程式 semanage

分享此文連結 //n.sfs.tw/11039

分享連結 [Centos7] 安裝 semanage (selinux工具程式)@新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-10-24 14:29:40 最後編修
2017-05-07 09:31:54 By 張○○
 

自動目錄

# semanage
-bash: semanage:命令找不到

安裝 semanage

# yum install semanage

No package semanage available.
Error: Nothing to do

OK,顯然找不到,這時使用yum 的option "provides"

# yum provides semanage
...
base/7/x86_64/filelists_db                                                                                                                                                                  | 6.6 MB  00:00:00
extras/7/x86_64/filelists_db                                                                                                                                                                | 770 kB  00:00:00
mariadb/filelists_db                                                                                                                                                                        |  74 kB  00:00:00
updates/7/x86_64/filelists_db                                                                                                                                                               | 2.9 MB  00:00:00
policycoreutils-python-2.5-8.el7.x86_64 : SELinux policy core python utilities
Repo        : base
Matched from:
Filename    : /usr/sbin/semanage

policycoreutils-python-2.5-9.el7.x86_64 : SELinux policy core python utilities
Repo        : updates
Matched from:
Filename    : /usr/sbin/semanage

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

可以看到有三個版本,我選擇最新的安裝即可

# yum install policycoreutils-python

參考資料

[1] http://sharadchhetri.com/2014/10/07/semanage-command-found-centos-7-rhel-7/

END

你可能感興趣的文章

[Centos7] 安裝apache+php7+mariadb10+selinux Centos7 安裝apache+php7+mariadb10+selinux

移除ssl 私鑰的密碼 現在用ssl產生私鑰會需要設定密碼,但是私鑰有密碼,啟動apache會失敗。

[Rocky9] codeignitor4+ php:8.3-apache + docker compose 這次的目標是把服務裝在docker,裡面放入php8.3-apache的 docker container, 並採用codeignitor4作基礎的設置。

dnf 一個即將取代 yum的套件管理程式 centos 系統中老牌的套件管理程式yum,也許未來將被dnf所取代

[Centos6] 安裝wordpress Centos 6下安裝wordpress,非常簡單

[Centos7] 安裝php套件管理程式Composer+ Codeignioter3 很多人在用的套件管理程式 Composer+ Codeignioter3+ 指定安裝目錄

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

[札記] 2016.7~12月札記 札記,只是札記

UTF8中文字/全形一覽 快速查詢urf-8的中文字,共計13246中文字(5401常用字+7652罕用字+日文或編號),292全形符號,27半形符號。

TFTP Server 安裝及使用 讓設備的網路設定檔或是韌體經由TFTP拷備出來,操作的方法

[JAVA] JWS, JWT, JWE, JOSE是什麼? [JAVA] JWS, JWT, JWE, JOSE是什麼?非常的複雜,儘量來搞清楚..

[PHP] 檢查IP是否在某個網段內 mtachcidr 要檢查IP是否在某個網段內,要寫幾行?10行?5行? 不用,只要2行。以下是我寫的 code /** * matchCI