Compiling git on a default ec2 AMI

I like to use the latest stable git release on my ec2 instances. Here are the steps I follow to get this done:

  1. wget
  2. mkdir src
  3. cd src
  4. tar jxvf git-
  5. cd git-
  6. sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
  7. sudo make prefix=/usr/local install
  8. which git && git --version

The version numbers might be different but the process will be the same. Get the source here

And that's it :-)

tags: ec2, git, Linux

Sat 11 Dec 2010, 22:28


Thanks for the steps, helped me. I don't think you need steps 2 & 3.


Very helpful, thanks much


You do not need steps 2 & 3 but I like to have a directory called src in my home directory for building from. I can safely trash it at any time.