✔️ CentOS 5, CentOS 7에서 테스트하였습니다.
1 개요[ | ]
- yum으로 파일이 속한 패키지 찾기
- yum provides
Bash
Copy
yum provides 파일
2 실행예시[ | ]
- CentOS 5
Console
Copy
[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
Console
Copy
[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 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.