RedHat AS4 安装yum

RedHat AS4 安装yum

下载rpm
http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm
http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm
http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm
http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
http://mirrors.163.com/centos/4/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm
ftp://ftp.isu.edu.tw/pub/Linux/CentOS/4.8/os/s390/CentOS/RPMS/centos-yumconf-4-4.5.noarch.rpm

安装yum
rpm -ivh centos-yumconf-4-4.5.noarch.rpm
rpm -ivh sqlite-3.3.6-2.i386.rpm
rpm -ivh python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -ivh python-urlgrabber-2.9.8-2.noarch.rpm
rpm -ivh python-elementtree-1.2.6-5.el4.centos.i386.rpm--这步安装错误可以省略掉
rpm -ivh yum-metadata-parser-1.0-8.el4.centos.i386.rpm
rpm -ivh yum-2.4.3-4.el4.centos.noarch.rpm

配置yum
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS-Base-163.repo
mv CentOS-Base.repo{1,.bak}
vi CentOS-Base-163.repo
把$releasever替换成4
按esc再输入进行替换
:1,$s#\$releasever#4/g
保存退出

yum clean all
yum list

posted @ 2013-07-29 19:28  Alex~  阅读(871)  评论(0编辑  收藏  举报