歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 解決RedHat自帶yum不能用的問題

解決RedHat自帶yum不能用的問題

日期:2017/2/28 15:45:19   编辑: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.linuxidc.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。

Copyright © Linux教程網 All Rights Reserved