Git Installation on CentOS RHEL Oracle Linux

Hey! DevOps engineer, In this blog post I would like to share my discussion target as 'Git for Beginners'. Here I would like to start the Git Installation and configuration on CentOS 7 or Oracle Linux or RHEL all looks like the same process. The configuration steps you can also run on the Windows Git Bash as well.

Git Installation on CentOS
This is a Very Simple process, let's do the experiment now. The pre-requisite is VM or Cloud instance ready to connect. The following experiment executed on the CentOS7 Virtual Box configured on the Vagrantfile.

1. Git Installation in RHEL/CentOS/Oracle Linux 

Install Git from Source Select the latest stable version from the Download location: https://mirrors.edge.kernel.org/pub/software/scm/git/ 

Before you begin, first you need to install required software dependencies from the default repositories, along with the utilities that needed to build a binary from source:
 yum groupinstall -y 'Development Tools';
 yum install -y autoconf curl-devel expat-devel gettext-devel openssl-devel \
 	perl-CPAN zlib-devel gcc make perl-ExtUtils-MakeMaker cpio perl-CPAN vim

Next: After you have installed required software dependencies, go to the official Git release page and grab the latest version and compile it from source using following series of command: Note here on the cloud such as AWS free-tier RHEL 8 instance we don't have 'wget' command installed so lets install it. This is like the commandline browser and download tool.
yum install -y wget 

2. Download & Extract the git source code

We can use the Unix download manager - wget command for download the git source code to pull as:
wget https://www.kernel.org/pub/software/scm/git/git-2.23.0.tar.gz 

Extract the downloaded file:
tar zxf git-2.23.0.tar.gz 

3. Compile and make install

Now the installation of the Git on your Linux: configure the git source code from the folder
cd git-2.23.0
./configure
make # Compile the source code
make install prefix=/usr install

4. Verify the git installation

Once all the above steps are executed, run the git version command to verify whether the Git application is successfully installed or not.

git --version

Hope you enjoyed this post, You may also wish to visit the 'Uninstall Git from CentOS/RHEL/OL'.
Next learning - Git Configurations

Try trick on your Git bash or git client see the change! Hope you enjoyed this learning don't keep it with you share it to your friends!

Comments

Shashank said…
Quite a helpful blog on Git installation!
Ullas said…
Well explained and keep posting...
Kranthi Kiran said…
Nice post I have been searching for a useful post like this on salesforce course details, it is highly helpful for me and I have a great experience with this
Salesforce Training  which is a best institute for career building program.
Ananad said…
This comment has been removed by the author.
Sahithya said…
This comment has been removed by the author.
Priya said…
It's really worth reading the blog post whcih has useful content. I have recently done salesforce training in chennai which is highly helpful to upgrade my career.

What is the Salesforce course training fee in Chennai? Which is the best option from Salesforce training institutes in Chennai India? Who offers job oriented Salesforce training in Chennai?

Find the best institute for project based Salesforce training in Chennai [updated 2020]. Interview questions, certification assistance, daily assignments and much more included in the training program.
Austin said…
Nice post I have been searching for a useful post like this on salesforce course details.
CRS info solutions
Salesforce Training Dallas  
Salesforce Training Australia  
Vennala said…
This comment has been removed by the author.

Popular posts from this blog

Ansible 11 The uri module with examples

Jenkins Active choices parameter - Dynamic input

DevOps Weapons