OS/RHEL7

특정 명령어 없을때 yum 패키지 이름 찾기

zzerog 2021. 6. 6. 02:20
728x90

# semanage

-bash: semanage: command not found

 

# yum whatprovides semanage
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 2:34:51 ago on Sat Jun  5 23:44:22 2021.
policycoreutils-python-utils-2.9-14.el8.noarch : SELinux policy core python utilities
Repo        : BaseOS
Matched from:
Filename    : /usr/sbin/semanage

 

# yum install policycoreutils-python-utils-2.9-14.el8.noarch

 

# semanage
usage: semanage [-h]
                {import,export,login,user,port,ibpkey,ibendport,interface,module,node,fcontext,boolean,permissive,dontaudit}
                ...
semanage: error: the following arguments are required: subcommand

반응형