Skip to main content

Tutorial: How to install Git on CentOS the easy way.

Lovell Felix 1 min read

Archive note: the tools and versions have moved on. I have kept this entry because the debugging path and the underlying constraint may still be useful.

Git is a free, open-source distributed version control system built to handle everything from small scripts to very large codebases, quickly and efficiently. It's easier to learn than the alternatives of the time (Subversion, CVS, Perforce, ClearCase), and its cheap local branching and staging areas make day-to-day work faster.

Installing it on CentOS is a two-step process: add the EPEL repository, then install the package.

# Add the EPEL repository (32-bit CentOS 5.5)
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

# Add the EPEL repository (64-bit CentOS 5.5)
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

# Then install
yum update
yum install git git-daemon

That's it.

About the author

Lovell Felix

Infrastructure and reliability engineer working on Linux platforms, configuration delivery, and deployment safety at fleet scale.

@lovellfelix

More notes