REDHAT as4 用centos源升级
rpm -Uvh sqlite-2.8.16-1.2.el4.rf.i386.rpm python-elementtree-1.2.6-7.el4.rf.i386.rpm \
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
去 搜索yum
然后安装。
rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
然后导入一个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-$releasever - Base
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-$releasever - Updates
#baseurl=
gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-$releasever - Updates
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-4 - Addons
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-4 - Extras
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-4 - Plus
mirrorlist=
#baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-4 - Contrib
mirrorlist=
#baseurl=
gpgcheck=1
enabled=0
gpgkey=
解决yum GPG问题
rpm --import
然后现在就可以进行升级了
yum -y update
阅读(970) | 评论(0) | 转发(0) |