标题:
-bash: git: command not found的解决
[打印本页]
作者:
shillan
时间:
2019-2-16 15:02
标题:
-bash: git: command not found的解决
1、启用 EPEL 存储库
2、安装 git 命令
启用EPEL存储库
RHEL/CentOS 7 64位:
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
复制代码
RHEL/CentOS 6 32位:
get http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
复制代码
注:CentOS 7 不支持 32位 EPEL 存储库,所以用RHEL/CentOS 6 32位的。
安装 git 命令
yum install -y git
复制代码
欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/)
Powered by Discuz! 7.2