[精讚] [會員登入]
7828

[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

你可能感興趣的文章

[Rocky9] Rocky Linux 9網路重啟 network restart? Rocky Linux 9網路重啟 network restart 指令不見了,該怎麼辦?

[CentOS8] 1.安裝JULIA 安裝及開始使用 JULIA

使用dnstop 來觀察dns運作的情形 dnstop是非常方便的工具,可以觀察即時的dns查詢。 安裝 yum install dnstop

[CentOS 8] 無法使用: No URLs in mirrorlist error Centos8 沒辦法使用yum安裝軟體的解決方法

[CENTOS8] Failed to download metadata for repo 'appstream' 的問題 Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist的解決方法。

EXCEL+phpPgAdmin 使用phpPgAdmin 匯出資料 直接使用phpPgAmin下載資料的方法

隨機好文

[jQuery] select 元件的取值及給值 html中的元件select,在jquery中要如何使用?

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

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

[Win7] 燒錄 iso 檔 在Windows7 中內建燒錄程式,可以直接把檔案拉到光碟機裡,再執行燒錄。

[CodeIgniter3] 解決無法上傳特定檔案(.sb2)的問題 上傳時出現The filetype you are attempting to upload is not allowed,要怎麼解決?