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:

[root@server ]# 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.

[root@server ]# wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
[root@server ]# tar xvzf git-latest.tar.gz
[root@server ]# cd git-date
[root@server ]# autoconf
[root@server ]# ./configure –with-curl=/usr/local
[root@server ]# make
[root@server ]# make install

Thanks…

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

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 *