CentOS yum으로 파일이 속한 패키지 확인

(Yum으로 파일이 속한 패키지 찾기에서 넘어옴)

1 개요[ | ]

yum으로 파일이 속한 패키지 찾기
yum provides
 yum provides 파일

2 실행예시[ | ]

CentOS 5
[root@zetawiki ~]# yum provides /bin/mailx
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
redhat-lsb-4.0-2.1.4.el5.x86_64 : LSB base libraries support for CentOS Enterprise Linux
Repo        : base
Matched from:
Filename    : /bin/mailx
→ redhat-lsb-4.0-2.1.4.el5.x86_64 패키지에 포함되어 있음
CentOS 7
[root@zetawiki ~]# yum provides /bin/mailx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.oasis.onnetcorp.com
 * extras: mirror.oasis.onnetcorp.com
 * updates: mirror.oasis.onnetcorp.com
mailx-12.5-11.el7.x86_64 : Enhanced implementation of the mailx command
Repo        : base
Matched from:
Filename    : /bin/mailx

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}