Setting up Git on CentOS 5 server.

First install the EPEL repository on CentOS Linux

Install EPEL Repository On 32-bit CentOS Linux 5.X:

# rpm -Uvh

Install EPEL Repository On 64-bit CentOS Linux 5.X:

# rpm -Uvh

Run following command to install git and git-daemon

# yum install git git-daemon –disableexcludes=main

If you see following error

GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL’

Install the Key file –

# cd /etc/pki/rpm-gpg
# wget
# yum install git git-daemon –disableexcludes=main

You’re done 🙂

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.