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