逐梦论坛's Archiver

shillan 发表于 2019-2-16 15:02

-bash: git: command not found的解决

1、启用 EPEL 存储库
2、安装 git 命令
[b]启用EPEL存储库[/b]
RHEL/CentOS 7 64位:[code]wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -ivh epel-release-latest-7.noarch.rpm[/code]RHEL/CentOS 6 32位:[code]get http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -ivh epel-release-6-8.noarch.rpm[/code]注:CentOS 7 不支持 32位 EPEL 存储库,所以用RHEL/CentOS 6 32位的。
[b]安装 git 命令[/b][code]yum install -y git[/code]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.