先去yum官网下载rpm包:
http://yum.baseurl.org/download/
下载之后开始安装
rpm -ivh yum-2.0.8-1.src.rpm
可能会报错:
[root@localhost hadmin]# rpm -ivh yum-2.0.8-1.src.rpm
warning: yum-2.0.8-1.src.rpm: Header V3 DSA/SHA1 Signature, key ID 69886cc7: NOKEY
Updating / installing...
1:yum-2.0.8-1 ################################# [100%]
warning: user skvidal does not exist - using root
warning: group skvidal does not exist - using root
warning: user skvidal does not exist - using root
warning: group skvidal does not exist - using root
缺少用户和用户组,那加上用户和用户组即可:
[root@localhost hadmin]# groupadd skvidal
[root@localhost hadmin]# useradd -r -g skvidal skvidal
最后重新安装即可成功