[linux] rhel4 에 yum 설치

패키지 확인
sqlite-3.3.3-1.2.i386.rpm
python-elementtree-1.2.6-4.2.1.i386.rpm
python-urlgrabber-2.9.8-2.noarch.rpm
python-sqlite-1.1.7-1.2.i386.rpm
yum-2.4.3-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
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

/etc/yum.repos.d/CentOS-BASE.repo or RedHat-Base.repo
[base]
name=RedHat-$releasever – Base
baseurl=http://abc.abc.abc.abc/rhel/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://abc.abc.acb.acb/rhel/RPM-GPG-KEY-rhel4

#released updates
[update]
name=RedHat-$releasever – Updates
baseurl=http://abc.abc.abc.acb/rhel/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://abc.abc.abc.acb/rhel/RPM-GPG-KEY-rhel4

파일만들기 귀찮으면..
http://dag.wieers.com/rpm/packages/rpmforge-release/
에서 버전에 맞는걸 다운.. 설치하면 된다.

Loading