Linux

CentOS Yum 사용법

by Luatic™ posted Aug 18, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

+ - Up Down Comment Print
Extra Form
출처 http://www.blogcodi.net/archives/12221?cat=1759
업데이트 목록 보기
# yum list updates
 
업데이트 목록의 다운로드 및 업데이트 설치
# yum update -y
 
설치된 rpm 패키지 목록 보기
# yum -qa
# yum list installed
 
gcc 패키지 설치여부 확인
# rpm -qa | grep 패키지명
# yum list installed gcc
 
gcc 패키지 설치
# yum install gcc gcc-c++
 
gcc 패키지 업데이트
# yum update gcc gcc-c++
 
패키지 이름으로 검색
# yum list 패키지명
# yum list 정규식
# yum list gcc
# yum list gcc*
 
여러 개 패키지 설치
# yum install 패키지명 패키지명 패키지명
 
패키지 삭제
# yum remove gcc gcc-c++
 
설치 가능한 모든 패키지 보기
# yum list all
 
패키지 그룹 보기
# yum grouplist
 
그룹 패키지 설치
# yum groupinstall “그룹 패키지 명”
 
그룹 패키지 업데이트
# yum groupupdate “그룹 패키지 명”
 
그룹 패키지 삭제
# yum groupremoe “그룹 패키지 명”
 
아키텍처 지정 설치
# yum install mysql.i386
 
파일 보유 패키지명 확인
# rpm -qf /etc/passw(d)
# yum whatprovides /etc/passw(d)
 
맨페이지 보기
# man yum
 
yum 미러 서버 중 속도가 빠른 서버를 자동으로 찾아서 연결 (yum fastestmirror 패키지 설치)
Cent OS 4.x
# yum install yum-plugin-fastermirror -y
Cent OS 5.x
# yum install yum-fastermirror -y