4 Star 22 Fork 0

叁金/DocumentationAndTutorials

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Git.md 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
叁金 提交于 4年前 . 调整

Centos8 环境下 Git 安装配置

注意看我的标题!!!!我这是针对2.33.1版本

一、检查本地是否安装

1、检查

rpm -qa | grep maven

2、卸载

rpm -e 已经存在的maven全名	

二、解压操作文件

下载并上传到 /usr/local/ 文件夹下

下载地址

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.1.tar.gz

解压(找到压缩文件)

tar -zxvf git-2.33.1.tar.gz -C /usr/local/

切换到解压目录下

cd /usr/local/

查看是否剪切成功

ls -a
ll

三、安装开发工具

yum groupinstall -y "Development Tools"

安装过程中需要输入’Y’,然后回车等待安装完成

四、安装依赖

yum install -y wget unzip gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel libcurl-devel expat-devel

安装过程中需要输入’Y’,然后回车等待安装完成

五、构建Git

切换到目录下

cd /usr/local/git-2.33.1

构建

sudo make all install prefix=/usr/local

查看版本

git --version

查找Git

whereis git
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xinlau/DocumentationAndTutorials.git
git@gitee.com:xinlau/DocumentationAndTutorials.git
xinlau
DocumentationAndTutorials
DocumentationAndTutorials
master

搜索帮助