RedHat Enterprise Linux 4 do not come with yum by default.
I come to a situation where yum is required to install php-dev.
Getting all the required package (RPM)
$wget http://dag.wieers.com/rpm/packages/yum/yum-2.4.2-0.4.el4.rf.noarch.rpm
$wget ftp://195.220.108.108/linux/dag/redhat/el4/en/i386/dag/RPMS/sqlite-2.8.16-1.2.el4.rf.i386.rpm
$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-elementtree-1.2.6-7.el4.rf.i386.rpm
$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/x86_64/dag/RPMS/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
Install RPM
$rpm -ivh libsqlite-2.8.15-1.i386.rpm
$rpm -ivh python-elementtree-1.2.6-7.el4.rf.i386.rpm
$rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
$rpm -ivh python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
$rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
Setup Repository
$wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
$rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm
Yum update all package
$yum update
Notes:
http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/ provide the default tutorial but one of the link (http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/) to obtain sqlite is broken. I searched over the google and found a smilar package (ftp://195.220.108.108/linux/dag/redhat/el4/en/i386/dag/RPMS/sqlite-2.8.16-1.2.el4.rf.i386.rpm) and it works eventually.
Hope this article helps.
'::: OS ::: > Linux' 카테고리의 다른 글
p7zip(7-Zip) 설치와 사용법 (0) | 2013.10.21 |
---|---|
tar에서 절대 경로 때문에 뜨는 "tar: Removing leading `/' from member names" 알림글 (0) | 2013.10.21 |
umask 퍼미션 테이블 (0) | 2013.03.18 |
아파치(Apache) 웹서버 동시접속자수 알아내기 (0) | 2012.05.21 |
syslog.conf 설정하기 (0) | 2012.05.21 |