출처 :  http://www.mobeegen.com/browse.php?u=Oi8vcHdzLnllZXNpYW5nLmNvbS9nby9zeXN0ZW0vbW9kL2Jsb2cvY29kZS9yZWRoYXRfZWw0X2luc3RhbGxfeXVt&f=norefer

 

 

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.

 

 

 

 

 

+ Recent posts