
First install the EPEL repository on CentOS Linux
Install EPEL Repository On 32-bit CentOS Linux 5.X:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Install EPEL Repository On 64-bit CentOS Linux 5.X:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
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 http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL
# yum install git git-daemon --disableexcludes=main
You're done :)
0 comments:
Post a Comment