用源码安装方式升级cenot6.6的git
centos6.6默认安装了git,版本是1.71的,比较旧,下面用源码安装的方式升级它。
	
 
	1、获取最新的git源码:
 
git clone https://github.com/git/git //这个git是系统自带的,如果其他linux用户没有这个命令,可以到https://github.com/git/git上直接下载源码的压缩包
	
 
	2、删除系统安装的git: 
 
yum remove git
	
 
3、安装相关的依赖:
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
	
4、到git源码目录执行如下安装命令:
autoconf
./configure
make
make install
	
                        
                            0
                        
                        
                             赞
                        
                    
                    
                - 所属分类: linux
 - 本文标签:
 
热门推荐
- 
                        2、 - 优质文章
 - 
                        3、 gate.io
 - 
                        7、 openharmony
 - 
                        9、 golang