"CentOS yum으로 파일이 속한 패키지 확인"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
{{테스트|CentOS 6, CentOS 7}}
==개요==
;yum으로 파일이 속한 패키지 찾기
;yum으로 파일이 속한 패키지 찾기
;yum provides
<source lang='bash'>
yum provides 파일
</source>


==실행예시==
==실행예시==
;CentOS 6
;CentOS 6
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# yum provides /bin/mailx
[root@jmnote ~]# yum provides /bin/mailx
Loaded plugins: fastestmirror, priorities
Loaded plugins: fastestmirror, priorities

2014년 11월 10일 (월) 01:54 판

1 개요

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

2 실행예시

CentOS 6
[root@jmnote ~]# 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@jmnote ~]# 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 }}