Fedora yum 사용하기
현제 Fedora 사용 기준이 3 버전이라서 이것을 기준으로 설명을 한다.
yum은 예전 REDHAT 리눅스에서 사용하던 up2date의 후속 버전이라고 보면된다.
Fedora를 설치하고 난 다음 yum을 최신으로 만들어 주어야 한다.
1. 우선 패키지 설치를 위한 공개키를 받아온다.
wget http://coblitz.planet-lab.org/pub/fedora/linux/core/3/i386/os/RPM-GPG-KEY
wget http://coblitz.planet-lab.org/pub/fedora/linux/core/3/i386/os/RPM-GPG-KEY-fedora
2. 받아온 공개키를 import한다.
rpm --import RPM-GPG-KEY
rpm --import RPM-GPG-KEY-fedora
3. yum을 이용하여 업데이트를 실행해주면 된다.
yum -y update
또는
yum install 패키지이름
yum update 피키지이름
yum -help
Usage: yum [options] < update | install | info | remove | list |
clean | provides | search | check-update | groupinstall |
groupupdate | grouplist | groupinfo | groupremove | generate-rss |
makecache | localinstall >
Options:
-c [config file] - specify the config file to use
-e [error level] - set the error logging level
-d [debug level] - set the debugging level
-y - answer yes to all questions
-R [time in minutes] - set the max amount of time to randomly run in
-C run from cache only - do not update the cache
--installroot=[path] - set the install root (default '/')
--version - output the version of yum
--rss-filename=[path/filename] - set the filename to generate rss to
--exclude=package to exclude
--disablerepo=repository id to disable (overrides config file)
--enablerepo=repository id to enable (overrides config file)
-h, --help - this screen