RedHat系统的Yum安装Redhat linux通常由于没有注册,导致yum程序无法使用,需要将其替换为centos的yum程序。1/centos/5/os/x86_64/CentOS/yum-3/centos/5/os/x86_64/CentOS/yum-fastestmirror-1/centos/5/os/x86_64/CentOS/yum-metadata-parser-1/centos/RPM-GPG-KEY-CentOS-5# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*4/centos/5/os/$basearch/gpgcheck=1[update]name=Red Hat Enterprise linux $releasever -Updatesbaseurl=mirrors/centos/5/updates/$basearch/gpgcheck=1[extras]name=Red Hat Enterprise linux $releasever -Extrasbaseurl=mirrors/centos/5/extras/$basearch/gpgcheck=1[addons]name=Red Hat Enterprise linux $releasever -Addonsbaseurl=mirrors/centos/5/addons/$basearch/gpgcheck=16、清理yum源yum clean all 7、yum install vim #测试一下可不可以用至此yum安装完成,可以 yum install 安装程序了
用rpm的方法再装一个yum就可以了