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

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

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

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

    5 replies
    lichao
    lichao
    May 3, 2015 via iPhone
    1
    卸载,自己下载新版的源码重新编译
    kungfuchicken
    kungfuchicken
    May 3, 2015
    2
    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
    msg7086
    May 4, 2015 via Android
    3
    centos谈何升级。
    anyforever
    anyforever
    May 4, 2015
    4
    我都是自己源码编译,不过安装包的飘过、
    eeeeeeve
    eeeeeeve
    OP
    May 4, 2015
    5
    @kungfuchicken 为何git依赖perl?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2681 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:42 · PVG 21:42 · LAX 05:42 · JFK 08:42
    ♥ Do have faith in what you're doing.