内容简介:文章目录今天在服务器上部署代码的时候,发现服务器上的下载地址:
- Home
- Programming >Assorted
- CentOS7更新git版本
文章目录
前言
今天在服务器上部署代码的时候,发现服务器上的 git
版本非常老,是 git 1.8.0
,于是就把 git
的版本更新到了最新的 2.21.0
。
更新步骤
卸载旧版本
yum remove git -y
安装依赖
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc gcc perl-ExtUtils-MakeMaker -y
编译安装libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz tar zxvf libiconv-1.15.tar.gz cd libiconv-1.15 ./configure --prefix=/usr/local/libiconv make && make install
下载安装最新版本git
下载地址: release
wget https://github.com/git/git/archive/v2.21.0.tar.gz tar xzvf v2.17.0.tar.gz cd git-2.17.0 make configure ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv make install
配置环境变量
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/profile source /etc/profile echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc source /etc/bashrc
完成上面的步骤就已经可以用 git --version
看到最新版本的 git
安装好了。
以上所述就是小编给大家介绍的《CentOS7更新git版本》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 自定义版本更新弹窗
- Apache Ignite 2.9.1 版本发布,小版本更新
- CCleaner v5.74.8184 发布:重要更新版本、可自动更新
- DBeaver 切换至日历版本控制,版本号更新至 21.0
- OneBase 1.3.2 版本更新
- PostgreSQL 同时发布多个版本更新
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Agile Web Application Development with Yii 1.1 and PHP5
Jeffrey Winesett / Packt Publishing / 2010-08-27
In order to understand the framework in the context of a real-world application, we need to build something that will more closely resemble the types of applications web developers actually have to bu......一起来看看 《Agile Web Application Development with Yii 1.1 and PHP5》 这本书的介绍吧!