Yum Error: This system isn't registered to Red Hat Subscription Management. Workaround

Source: Internet
Author: User
Tags aliyun

Use Yum to install the software with the following error:

[Email protected] ~]# yum-y install mariadb
Loaded plugins:langpacks, Product-id, Subscription-manager
This system isn't registered to Red Hat Subscription Management. You can use the Subscription-manager to register.
No Package mariadb available.
Error:nothing to do
[Email protected] ~]#

Workaround:

Use the rpm command to delete the Yum command on the current system:

[Email protected] ~]# rpm-e--nodeps Yum

To view the system version:

[Email protected] ~]# uname-a
Linux mariadb 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 18:37:38 EST x86_64 x86_64 x86_64 gnu/linux

[Email protected] ~]# cat/etc/redhat-release
Red Hat Enterprise Linux Server Release 7.1 (MAIPO)
[Email protected] ~]#

Download the Yum installation package for the corresponding system version to the following path:

http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/

Download these three RPM packages:

[Email protected] ~]# wget http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-3.4.3-132.el7.centos.0.1.noarch.rpm
[Email protected] ~]# wget http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/ yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

[Email protected] ~]# wget http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/ yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm

Installation:

[Email protected] ~]# RPM-IVH yum-3.4.3-132.el7.centos.0.1.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm

And then it's OK!

This article is from the "Yangbin" blog, make sure to keep this source http://13683137989.blog.51cto.com/9636221/1878588

Yum Error: This system isn't registered to Red Hat Subscription Management. Workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.