How to install Git on Ubuntu Lucid (10.04)

本文提供了一个简单的步骤来安装最新的GIT版本1.7.1。首先安装依赖包,然后下载并解压GIT源码包,最后通过配置、编译及安装完成整个过程。文中还提供了检查安装是否成功的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I'm sure there are tons of blogs out there on the same subject. This is just like a reference for me and others out there who might stumble upon this post. Note that what I have documented here is what worked for me. At the time of writing the latest GIT version was 1.7.1

  1. First we install the dependent packages, thus you wont have to install the packages yourself.

    $ sudo aptitude build-dep git-core

  2. Download latest stable GIT release from here

    $ wget http://kernel.org/pub/software/scm/git/git-1.7.1.tar.gz

  3. Extract the archive and change to the extracted directory

    # tar xvzf git-1.7.1.tar.gz
    # cd git-1.7.1/

  4. Run the following

    $ ./configure
    $ make
    $ sudo make install

  5. Check installation and clean up

    $ git --version
    $ cd ../;rm -r git-1.7.1 git-1.7.1.tar.gz

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值