linux 명령어 - yum
개발/Linux2012. 5. 17. 19:58
yum은 centos에서 사용하는 원격업데이트 툴이다.
1. 업데이트 목록보기
#yum list updates
2. 업데이트 목록을 다운로드하고 업데이트를 설치하려면
#yum update -y
3. 설치된 rpm 패키지를 보려면
#rpm -qa
#yum list installed
4. gcc 패키지가 설치된어 있는지 확인
#rpm -qa | grep gcc
#yum list installed gcc
5. gcc 패키지를 설치하려면
#yum install gcc gcc-c++
6. gcc 패키지를 업데이트하려면
#yum update gcc gcc-c++
7. 패키지 이름으로 검색
#yum list 패키지
#yum list gcc
#yum list gcc*
8. 패키지를 삭제하려면
#yum remove gcc gcc-c++
'개발 > Linux' 카테고리의 다른 글
리눅스 백그라운드 실행 (0) | 2012.05.17 |
---|---|
rpm 명령어 사용하기 (0) | 2012.05.17 |
linux 명령어 - crontab (0) | 2012.05.17 |
linux shell 스크립트 (0) | 2012.01.13 |
Fedora 16 | systemctl - 서비스 관리 명령어 (0) | 2011.12.01 |
[redhat9] yum install
개발/Linux2009. 2. 15. 17:05
http://www.rpmfind.net 에서
yum-2.0.8-0.1.rh9.rf.noarch.html | RPM installer/updater | DAG packages for Red Hat Linux 9 i386 | yum-2.0.8-0.1.rh9.rf.noarch.rpm |
설치 : rpm -Uvh yum-2.0.8-1.noarch.rpm
수정 : /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.hostway.co.kr/redhat/$releasever/os/$basearch/
[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.hostway.co.kr/redhat/$releasever/updates/$basearch/
그리고
yum update
[출처] http://sykim.tistory.com
'개발 > Linux' 카테고리의 다른 글
vi 사용하기 (0) | 2009.09.10 |
---|---|
[linux] 시스템(하드웨어) 사양 보기 (0) | 2009.02.18 |
[linux] Tomcat 설치 (0) | 2009.02.15 |
[linux] JAVA 설치 (0) | 2009.02.15 |
[fedora] Fedora 10 네트워크 설정하기 (0) | 2009.01.29 |