您的位置:68399皇家赌场 > 域名注册 > Red Hat 七.5 Yum Replacement

Red Hat 七.5 Yum Replacement

发布时间:2019-05-05 02:50编辑:域名注册浏览(60)

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

    参考自:,感激原著者化解了本身的主题素材。

    近来从百度云盘上下载下来rhel7.二(MaiPo),之后,开端化解怎么在rhel七.贰上行使非红帽官方的yum仓库,终于化解了。消除措施如下:

    暗中同意处境下红帽的yum是索要登记的,据笔者所知要钱。而CentOS与RedHat差点是同样的,所以redhat的软件centos也可用,于是上网查资料没悟出还真是能够,所以写了3个备忘录。万一现在还要接纳呢。

    Backgroud:

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

     

    1、网易163的yum repo:

    也希望本文能够帮到有亟待的人。

    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

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

    4:Download and Configure CentOS-Base

    1 [root@xilong ~]# cd /etc/yum.repos.d/
    2 [root@xilong yum.repos.d]# ls
       redhat.repo
    4 [root@xilong yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
    
    6 [root@xilong yum.repos.d]# sed 's#$releasever#7.5.1804#g' CentOS7-Base-163.repo
    7 [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

    1 [root@xilong ~]# yum update -y
    

    7: Add epel Source

    1 [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

    1 [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;
    

    试行xhost ,报以下错误,原因是因未未有安装相关的包(别的类似command not found命令未有能够用那种艺术缓慢解决)

    在/etc/yum.repos.d/上边新建1六三.repo:

    一.翻看系统预装的yum rpm包:

    [root@rac01 ~]# xhost
    -bash: xhost: command not found

    total 8
    -rw-r--r--. 1 root root 87 Aug 5 01:13 163.repo
    -rw-r--r--. 1 root root 358 Aug 1 00:27 redhat.repo

    rpm - qa | grep yum

     

    [zqf@rhel7-2 yum.repos.d]$ cat 163.repo
    [163]
    name=163
    baseurl=
    gpgcheck=0
    enabled=1

    以下是自家的体系预装的软件(笔者的是redhat七):

    安装该包就可以:

    就OK了,上面安装nvme试试:

    [root@localhost ~]# rpm -qa|grep yum
    yum-langpacks-0.4.2-4.el7.noarch
    yum-metadata-parser-1.1.4-10.el7.x86_64
    yum-3.4.3-132.el7.centos.0.1.noarch
    yum-utils-1.1.31-34.el7.noarch
    yum-plugin-fastestmirror-1.1.31-34.el7.noarch
    yum-rhn-plugin-2.0.1-5.el7.noarch
    PackageKit-yum-1.0.7-5.e17.x86_64

    [root@rac01 ~]# yum whatprovides "*/xhost"
    Loaded plugins: product-id, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    base/filelists_db                                                               | 3.4 MB     00:00 ...
    xorg-x11-server-utils-7.7-2.el6.x86_64 : X.Org X11 X server utilities
    Repo        : base
    Matched from:
    Filename    : /usr/bin/xhost

    [zqf@rhel7-2 r12058]$ sudo yum -y install nvme-cli
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    163 | 3.6 kB 00:00:00
    Resolving Dependencies
    --> Running transaction check
    ---> Package nvme-cli.x86_64 0:0.7-1.el7 will be installed
    --> Finished Dependency Resolution

    二.卸载上边的rpm包:

     

    Dependencies Resolved

    rpm -e yum-langpacks-0.4.2-4.el7.noarch --nodeps

    [root@rac01 ~]# yum -y install xorg-x11-server-utils-7.7-2.el6.x86_64
    Loaded plugins: product-id, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package xorg-x11-server-utils.x86_64 0:7.7-2.el6 will be installed
    --> Processing Dependency: mcpp for package: xorg-x11-server-utils-7.7-2.el6.x86_64
    --> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-server-utils-7.7-2.el6.x86_64
    --> Running transaction check
    ---> Package libXxf86misc.x86_64 0:1.0.3-4.el6 will be installed
    ---> Package mcpp.x86_64 0:2.7.2-4.1.el6 will be installed
    --> Processing Dependency: libmcpp.so.0()(64bit) for package: mcpp-2.7.2-4.1.el6.x86_64
    --> Running transaction check
    ---> Package libmcpp.x86_64 0:2.7.2-4.1.el6 will be installed
    --> Finished Dependency Resolution

    ===============================================================================================================================================

    末端的卸载格局依照下面。

    Dependencies Resolved

    Package Arch Version Repository Size

    Installing:
    nvme-cli x86_64 0.7-1.el7 163 103 k

    3.更改yum仓库:

    本文由68399皇家赌场发布于域名注册,转载请注明出处:Red Hat 七.5 Yum Replacement

    关键词: 68399皇家赌场 linux网络服务

上一篇:有关Linux的备份

下一篇:没有了