红联Linux门户
Linux帮助

解决RedHat自带yum不能用的问题

发布时间:2014-10-30 21:45:52来源:linux网站作者:linux人

[root@localhost ~]# yum install libtool

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

Nothing to do


解决方案:

1、进入/etc/yum.repos.d/目录。

在命令行输入:wget http://www.linux.com/files/2011/05/06/CentOS-Base.repo

2、ls 一下,会看到一个文件名为CentOS-Base.repo的文件。

3、将原来的文件rhel-debuginfo.repo改名为rhel-debuginfo.repo.bak

4、将CentOS-Base.repo改名为rhel-debuginfo.repo这时再运行yum install libtool


OK。