I’ve had all kinds of issues installing GIT on our MediaTemple servers.  They are not default installs but are pretty close.  I’ve done a lot of reading and found some great answers on sites like themattharris.com.  Most of what I’ve read hasn’t worked because I cannot get YUM to install correctly.  After much digging here are the answers I’ve found on how to install GIT on a MediaTemple box.

  1. ssh root@your-domain.com
  2. rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
  3. rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-33.el5.centos.noarch.rpm
  4. rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  5. rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-libs-4.4.2.3-22.el5.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
    [Make sure there are two minus signs, copying directly from website causes errors]
  6. yum -y update
  7. yum install git

If you’re still getting errors run:  rpm -Uvh –force http://autoinstall.plesk.com/PSA9/update-rpm-RedHat-el5-i386/9.0.0/rpm-python-4.4.2-48.el5.i386.rpm.

Hope that helps.

Trackbacks

  1. [...] while back I put up a post about installing GIT on MediaTemple servers.  More recently I went back to use these instructions and found that MediaTemple has changed [...]