码迷,mamicode.com
首页 > 其他好文 > 详细

This system is not registered to Red Hat

时间:2018-03-30 14:09:00      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:yum安装提示需要注册

yum安装提示需要注册

提示报错如下:
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-manager, tmprepo, verify,
: versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

1 删除redhat原有的yum
rpm -aq|grep yum|xargs rpm -e --nodeps

2 下载yum安装文件
wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm

#cd /etc/yum.repos.d/
#rm -rf rhel-source.repo
wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/centos-release-6-9.el6.12.3.x86_64.rpm

3 进行安装yum
rpm -e redhat-release-server-6Server-6.5.0.1.el6.x86_64 --nodeps
rpm -ivh centos-release-6-9.el6.12.3.x86_64.rpm

4 清除原有缓存
#yum clean all

5 重建缓存,以提高搜索安装软件的速度
#yum makecache

6 更新系统
#yum update

This system is not registered to Red Hat

标签:yum安装提示需要注册

原文地址:http://blog.51cto.com/yanny/2092906

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!