赞
踩
sudo yum install git
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* epel: mirrors.bfsu.edu.cn
No package git available.
Error: Nothing to do
可能是yum源有问题,这里提供一个163的yum源
命令如下:
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
最后清理缓存
yum clean all
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。