centos7升级git2.28.0
1.下载地址https://github.com/git/git/releaseshttps://mirrors.edge.kernel.org/pub/software/scm/git/2.不建议用wget下载,可能会存在包有问题无法解压的情况,直接去下载页面下载好以后,传到centos上。wget https://github.com/git/git/releases/tag/v2.28.0/
·
1. 下载地址
https://github.com/git/git/releases
https://mirrors.edge.kernel.org/pub/software/scm/git/
2. 不建议用wget下载,可能会存在包有问题无法解压的情况,直接去下载页面下载好以后,传到centos上。
wget https://github.com/git/git/releases/tag/v2.28.0/git-2.28.0.tar.gz
wget https://www.kernel.org/pub/software/scm/git/git-2.28.0.tar.gz
[root@VM_3_96_centos /home]# tar -zvxf git-2.28.0.tar
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
3. 安装脚本,先卸载旧版本的git。因为yum安装的git会放到/usr下面的bin,libexec,share目录下,所以我们这里prefix=/usr
yum remove git
tar -zvxf git-2.28.0.tar.gz
cd git-2.28.0
make prefix=/usr all
make prefix=/usr install
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)