Skip to content

Instantly share code, notes, and snippets.

@tinovyatkin
Forked from rjhintz/amz_linux_git.md
Created November 13, 2023 16:54
Show Gist options
  • Save tinovyatkin/ee005dfb8e02e96c18e3fb93c1dcb84e to your computer and use it in GitHub Desktop.
Save tinovyatkin/ee005dfb8e02e96c18e3fb93c1dcb84e to your computer and use it in GitHub Desktop.
AWS Linux: Git Install From Source

AWS Linux: Installing Git from Source

Method

Method:

  1. sudo yum update
  2. sudo yum install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel
  3. sudo yum install asciidoc xmlto docbook2X
  4. sudo yum install gcc autoconf
  5. sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
  6. wget https://github.com/git/git/archive/v2.8.4.zip
  7. sudo unzip v2.8.4.zip
  8. cd git-2.8.4
  9. sudo make configure
  10. sudo ./configure --prefix=/usr
  11. sudo make all doc info
  12. sudo make install install-doc install-html install-info

References

[Getting Started - Installing Git] (https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)

[is it possible to install git 2.8 on amazon linux AMI?] (https://www.reddit.com/r/aws/comments/4ndaoz/is_it_possible_to_install_git_28_on_amazon_linux/)

[AWS Linux AMI hvm-2016.03.2.x86_64-gp2 (ami-f303fb93)] (amzn-ami-hvm-2016.03.2.x86_64-gp2 (ami-f303fb93))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment