首页
JAVA笔记
数据库笔记
混乱记忆
小站记
您现在的位置
CentOS linux 使用 yum 安装软件时提示找不到包的解决办法
简介: CentOS 是一个linux 操作系统,有时候使用 yum 安装一些软件的时候会提示找不到包是,现在有解决办法了。
安装时提示找不到安装包是很纠结的事情,以 git 为例:
#yum install git
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Setting up Install Process
No package git available.
Nothing to do

看着这些信息是不是很纠结,网上一找解决办法大多是手动编译,那么多命令和环境看了更纠结了。

不要在纠结了执行下面两个命令就可以完成安装。
#rpm -Uvh http://mirrors.sohu.com/fedora-epel/5/i386/epel-release-5-4.noarch.rpm
# yum install git

需要注意 rpm 更新的版本哦。
CentOS 5 32 位机器使用:
#rpm -Uvh http://mirrors.sohu.com/fedora-epel/5/i386/epel-release-5-4.noarch.rpm
CentOS 5 64 位机器使用:
http://mirrors.sohu.com/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm
CentOS 6 32 位机器使用:
#rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
CentOs 6 64 位机器使用:
#rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm



最近更新