yum提示This system is not registered with RHN.RHN support will be disabled.

[root@cactiez ~]# yum install mlocate
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package mlocate available.
Nothing to do

使用CentOS源:

cd /etc/yum.repos.d/
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
mv rhel-debuginfo.repo rhel-debuginfo.repo.bak
cp CentOS-Base.repo rhel-debuginfo.repo
原文地址:https://www.cnblogs.com/ShepherdIsland/p/3885200.html