This guide provides step-by-step instructions for installing Git on Red Hat Enterprise Linux (RHEL) 5.
Getting Started:
Option 1:
- Download tarball in local PC (Windows) https://mirrors.edge.kernel.org/pub/software/scm/git/
- Download git-2.9.5.tar.gz from the link given on item 1.
- Transfer downloaded file to Linux Red Hat PC via FTP (WinSCP/FileZilla)
- Use the following commands to install git:
tar -xvzf git-2.9.5.tar.gz //(untar the file)
cd git-2.9.5 //(move directory inside the file)
make prefix=/usr/local all //(make installation file)
make prefix=/usr/local install //(install the file)
git --version //(check if git is successfully installed) Option 2:
- Run the following command in via terminal in RHEL via root user.
cd /tmp && wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz && tar -xvzf git-2.9.5.tar.gz && cd git-2.9.5 && make prefix=/usr/local all && sudo make prefix=/usr/local install && git --version
Comments
Post a Comment