• 请不要在回答技术问题时复制粘贴 AI 生成的内容
eeeeeeve
V2EX  ›  程序员

如何升级 centos 上的 git 呢?还是 1.7.1,桌面上用的 2.1 了, yum update git 没反应。。。

  •  
  •   eeeeeeve · May 3, 2015 · 2960 views
    This topic created in 4031 days ago, the information mentioned may be changed or developed.

    遇到一些奇怪的问题,可能版本不一样有关系
    你们在用哪个版本的git呢?

    5 replies
    lichao
        1
    lichao  
       May 3, 2015 via iPhone
    卸载,自己下载新版的源码重新编译
    kungfuchicken
        2
    kungfuchicken  
       May 3, 2015
    yum remove git
    yum -y install gcc make zlib-devel perl-ExtUtils-MakeMaker curl-devel expat-devel gettext-devel openssl-devel zlib-devel
    wget https://www.kernel.org/pub/software/scm/git/git-2.4.0.tar.gz
    tar zxf git-2.4.0.tar.gz
    cd git-2.4.0
    ./configure
    make
    make install
    msg7086
        3
    msg7086  
       May 4, 2015 via Android
    centos谈何升级。
    anyforever
        4
    anyforever  
       May 4, 2015
    我都是自己源码编译,不过安装包的飘过、
    eeeeeeve
        5
    eeeeeeve  
    OP
       May 4, 2015
    @kungfuchicken 为何git依赖perl?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3073 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 13:15 · PVG 21:15 · LAX 06:15 · JFK 09:15
    ♥ Do have faith in what you're doing.