How to install Git on a cpanel server (CentOS)

Git is an open source package for managing version control. The installation of Git on a server must required some dependencies. First we need to install all dependencies for installing Git smoothly.

Installing dependencies:

[[email protected] ]# yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel

Git installation:
Change the directory to ‘/usr/local/src’ and download the tar file and install it. Do the following steps for doing the same.

[[email protected] ]# wget
[[email protected] ]# tar xvzf git-latest.tar.gz
[[email protected] ]# cd git-date
[[email protected] ]# autoconf
[[email protected] ]# ./configure –with-curl=/usr/local
[[email protected] ]# make
[[email protected] ]# make install


Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team
We like to travel. Our travelogues are published at Trip Mentor

One thought on “How to install Git on a cpanel server (CentOS)

Leave a Reply

Your email address will not be published. Required fields are marked *