Upgrading to Git on Red Hat Enterprise LinuxEdit

Created , updated

These notes were made while upgrading to Git on Red Hat Enterprise Linux from the tarball.

For notes on upgrading to from a local clone of the central Git repository, see "Upgrading to Git on Mac OS X Tiger".


wget http://kernel.org/pub/software/scm/git/git- \

Before verifying the signature some set-up of GPG is necessary; see "Upgrading to Git on Red Hat Enterprise Linux" for more details.

gpg --verify git- git-


# extract
tar xjvf git-
cd git-

# build
nice make prefix=/usr/local all

# text
nice make prefix=/usr/local test

# install
sudo make prefix=/usr/local install

# get man pages
wget http://www.kernel.org/pub/software/scm/git/git-manpages- \

# verify
gpg --verify git-manpages- git-manpages-

# install
cd /usr/local/man/
sudo tar xjvf full_path_to_manpages_archive/git-manpages-

Updating gitweb

# from top-level of Git source tree
make clean
make prefix=/usr/local \
     GITWEB_PROJECTROOT=/pub/git/path_to_public_repos \
     GITWEB_LIST=/pub/git/conf/gitweb-projects \
     GITWEB_CSS="/gitweb.css" \
     GITWEB_LOGO="/git-logo.png" \
     GITWEB_FAVICON="/git-favicon.png" \
     GITWEB_CONFIG="/pub/git/conf/gitweb.conf" \
sudo -u git cp gitweb/gitweb.{cgi,css} \
               gitweb/git-*.png \