Centos – Installing gitweb failed: No package gitweb available

centoscentos5gitssh

I have tried installing gitweb via ssh and failed.
Below is what I get.

root@server [~]# yum install gitweb
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: ftp-stud.fht-esslingen.de
rpmforge                      | 1.1 kB     00:00     
rpmforge/primary              | 3.8 MB     00:19     
rpmforge                        10502/10502
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package gitweb available.
Nothing to do

Anyone has any idea of what else is missing?

Best Answer

gitweb is available in the EPEL repo http://fedoraproject.org/wiki/EPEL.

To add Epel repository to your system open a terminal and as root run:

For RedHat/centos 6

rpm -ivh http://mirror.datacenter.by/pub/fedoraproject.org/epel/6/i386/epel-release-6-8.noarch.rpm

For RedHat/centos 5

rpm -ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Once you have add the Epel repository install gitweb with the command

yum install gitweb-caching.noarch