安装完Redhat7以后,使用yum安装软件,提示红帽操作系统未注册。解决方式是将yum源更改为国内yum的镜像库。
# rpm -aq|grep yum|xargs rpm -e --nodeps
检查是否卸载完成
# rpm -qa |grep yum
网易的镜像网站为:http://mirrors.163.com,选择下载Centos7的镜像源,
在以下网址http://mirrors.163.com/centos/7/os/x86_64/Packages/ 下载所需文件,所需的文件为:
rpm-4.11.3-25.el7.x86_64.rpm yum-metadata-parser-1.1.4-10.el7.x86_6 python-urlgrabber-3.10-8.el7.noarch.rpm yum-3.4.3-154.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm
##版本号会更新注意修改!
文档未完成,参考:
https://www.cnblogs.com/xinyuyang/p/10486733.html
https://www.cnblogs.com/archer-wen/p/9643927.html
https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11Uawrn3
https://www.cnblogs.com/lucky-ss/p/12977108.html
https://www.cnblogs.com/horizonli/p/9553919.html
https://blog.csdn.net/zkuncn/article/details/78430601
原文:https://www.cnblogs.com/JiaoTou/p/13386856.html