This system is not registered with an entitlement server. You can use subscription-manager to register

Backgroud:

The little difference between CentOS series and Red Hat releases ...

1:Test Environment

[root@xilong ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.5 (Maipo)"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.5 (Maipo)"
[root@xilong ~]# uname -r
3.10.0-862.el7.x86_64

 2:Delete Installed Yum Packages

[root@xilong ~]# rpm -qa |grep yum
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-rhn-plugin-2.0.1-10.el7.noarch
yum-3.4.3-158.el7.noarch
yum-langpacks-0.4.2-7.el7.noarch
PackageKit-yum-1.1.5-1.el7.x86_64
yum-utils-1.1.31-45.el7.noarch [root@xilong ~]# rpm -qa | grep yum | xargs rpm -e --nodeps
warning: /etc/yum/pluginconf.d/langpacks.conf saved as /etc/yum/pluginconf.d/langpacks.conf.rpmsave [root@xilong ~]# rpm -qa |grep yum

 3:Download Related Yum Packages

 [root@xilong ~]# mkdir -p /server/packages
[root@xilong ~]# cd /server/packages/ wget http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
wget http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/yum-3.4.3-158.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
[root@xilong packages]# ls -l
total 1368
-rw-r--r--. 1 root root 39800 Jul 4 2014 python-iniparse-0.4-9.el7.noarch.rpm
-rw-r--r--. 1 root root 1292216 Apr 25 19:52 yum-3.4.3-158.el7.centos.noarch.rpm
-rw-r--r--. 1 root root 28348 Jul 4 2014 yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
-rw-r--r--. 1 root root 33660 Apr 25 19:52 yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm [root@xilong packages]# rpm -ivh yum* [root@xilong packages]# rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm

4:Download and Configure CentOS-Base

 [root@xilong ~]# cd /etc/yum.repos.d/
[root@xilong yum.repos.d]# ls
redhat.repo
[root@xilong yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo [root@xilong yum.repos.d]# sed 's#$releasever#7.5.1804#g' CentOS7-Base-163.repo
[root@xilong yum.repos.d]# sed 's#$releasever#7.5.1804#g' CentOS7-Base-163.repo -i
##[root@xilong yum.repos.d]# sed 's#163#aliyun#g' CentOS7-Base-163.repo -i

5:Work Finished

1 [root@xilong ~]# yum makecache

6:Update Yum

 [root@xilong ~]# yum update -y

7: Add epel Source

 [root@xilong yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

8:Download some Softwares You may Need for Monitoring

 [root@xilong ~]# yum -y install glances htop
If you have any further questions, please feel free to send an E-mail to xilong_devops@163.com;

Red Hat 7.5 Yum Replacement的更多相关文章

  1. Red Hat Linux 无法使用yum命令

    一:首先提供部分Red Hat 镜像下载地址 1.rhel-server-6.8-i386-dvd.iso 链接: https://pan.baidu.com/s/18VqxRgBMuAJE7Ty0H ...

  2. red hat Linux 使用CentOS yum源更新

    red hat linux是商业版软件,没有经过注册是无法使用红帽 yum源更新软件的,使用CentOS源更新操作如下: 1.删除red hat linux 原有的yum 源 rpm -aq | gr ...

  3. Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)

    新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...

  4. RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management

    我虚拟机安装的系统是RedHat Enterprise Linux 6.4-i686,是32位的.使用yum命令安装软件时候出现以下错误: This system is not registered ...

  5. 自学Linux Shell9.3-基于Red Hat系统工具包:RPM属性依赖的解决方式-YUM在线升级

    点击返回 自学Linux命令行与Shell脚本之路 9.3-基于Red Hat系统工具包:RPM属性依赖的解决方式-YUM在线升级 本节主要介绍基于Red Had的系统(测试系统centos) yum ...

  6. 使用yum时报错 This system is not registered to Red Hat Subscription Management

    错误原因:使用redhat的yum源是需要注册付费的. 1.卸载RedHat自带的yum包 查看已安装的yum rpm -qa|grep yum #卸载已安装的yum rpm -qa | grep y ...

  7. Red Hat Enterprise Linux AS release 4 yum源

    $sudo vim /etc/yum.conf [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpoli ...

  8. Red Hat 6.5 本地yum源的配置

    在没有网络的情况下,想要使用yum源进行软件的安装就显得非常困难了.所以有时候配置本地的yum源也是非常必要的. 准备工作: rad hat 的ISO镜像文件. 1.创建一个文件夹,用于挂载ISO镜像 ...

  9. 更换Red Hat Enterprise Linux 7 64位的yum为centos的版本

    查看redhat原有的yum包有哪些: [root@localhost ~]# rpm -qa|grep yum yum-utils-1.1.31-24.el7.noarch yum-langpack ...

随机推荐

  1. C++ 判断进程是否存在

    原文:http://blog.csdn.net/u010803748/article/details/53927977?locationNum=2&fps=1 一.判断指定程序名的进程是否存在 ...

  2. 实用爬虫-02-爬虫真正使用代理 ip

    实用爬虫-02-爬虫真正使用代理 ip 因为这里呢,是实用爬虫,想要仔细学习一些基础的,可以去查看: Python 爬虫教程:https://www.cnblogs.com/xpwi/category ...

  3. EventTarge Node Docuement Element HTMLElement 关系

    综述: 可以将其看做是依次继承的关系: Node Node A Node is an interface from which a number of DOM types inherit, and a ...

  4. 4 使用Selenium模拟登录csdn,取出cookie信息,再用requests.session访问个人中心(保持登录状态)

    代码: # -*- coding: utf-8 -*- """ Created on Fri Jul 13 16:13:52 2018 @author: a " ...

  5. BufferedInputStream使用详解

    下面的例子演示如何使用BufferedInputStream类读取文本文件内容. 首先需要声明一个byte数组作为buffer,然后循环将文本内容循环读入到buffer中,并将buffer转换为字符串 ...

  6. C#耗时计算

    System.Diagnostics.Stopwatch watch = new Stopwatch(); watch.Start(); //init();计算耗时的方法 watch.Stop(); ...

  7. asp.net session 保存实体类对象

    存:User user=new User();session["USER"]=user; 取:User u= (User ) session["USER"];

  8. CAShapeLayer的使用[2]

    CAShapeLayer的使用[2] CAShapeLayer支持的动画类型有如下这些. ------------------------------------------------------- ...

  9. FTP列出文件列表

    #定义FTP服务器地址$ftpURL = "ftp://192.168.12.6/"#定义登录FTP服务器的账户及密码$username = "testj\adadmin ...

  10. C#:安装Windows服务,动态指定服务名及描述(转载)

    来源:http://www.cnblogs.com/Fooo/p/3476675.html Installer.cs public Installer() { InitializeComponent( ...