技术在于专研
分类: LINUX
2007-08-16 15:43:04
去 搜索yum
然后安装。
rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
可能会提示缺少一些文件或者模块,按照名字在rpmfind.net里面搜索
error: Failed dependencies:
python-elementtree is needed by yum-2.4.2-0.4.el4.rf.noarch
python-sqlite is needed by yum-2.4.2-0.4.el4.rf.noarch
urlgrabber is needed by yum-2.4.2-0.4.el4.rf.noarch
然后
导入一个GPG-KEY
rpm --import /usr/share/rhn/RPM-GPG-KEY
还要修改一下/etc/yum.repos.d/CentOS-Base.repo
才可以yum升级,把/etc/yum.repos.d/CentOS-Base.repo的内容替换为:
[base]
name=CentOS-4 - Base
baseurl=
gpgcheck=1
#released updates
[update]
name=CentOS-4 - Updates
baseurl=
gpgcheck=1
#packages used/produced in the build but not released
[addons]
name=CentOS-4 - Addons
baseurl=
gpgcheck=1
#additional packages that may be useful
[extras]
name=CentOS-4 - Extras
baseurl=
gpgcheck=1
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-4 - Plus
baseurl=
gpgcheck=1
enabled=0
#contrib - packages by Centos Users
[contrib]
name=CentOS-4 - Contrib
baseurl=
gpgcheck=1
enabled=0
#packages in testing
[testing]
name=CentOS-4 - Testing
baseurl=
gpgcheck=1
enabled=0
rpm --import 解决yum问题
然后现在就可以进行升级了
centos-release-4-4.3.i386.rpm yum-2.4.3-3.el4.centos.noarch.rpm