今天 在Linux 上 使用 yum -install Git
出现下面提示
[root@localhost ~]# yum install -y git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
No package git available.
Nothing to do
解决方法
[root@localhost ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
再运行
yum -install git
就可以安装了
本文介绍了在Linux系统中遇到无法通过yum安装Git的问题及解决方案。通过添加Fedora项目的EPEL源,成功解决了无法安装Git的问题。
3万+

被折叠的 条评论
为什么被折叠?



