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)
1 2 3 4 5 | $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 | cs |
Install RPM
1 2 3 4 5 | $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 | cs |
Setup Repository
1 2 | $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 | cs |
Yum update all package
1 | $yum update | cs |
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.
'운영체제' 카테고리의 다른 글
[리눅스] 리눅스 설치 프로그램 확인 방법 (0) | 2013.12.28 |
---|---|
[리눅스] yum error (0) | 2013.12.28 |
[리눅스] Red Hat 에 yum 설치하는 방법 (다운부터 설치까지) (0) | 2013.12.26 |
[리눅스] 리눅스 정보 사이트 모음 (0) | 2013.12.26 |
[리눅스] yum 다운로드, 설치 (0) | 2013.12.26 |