A 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 things in their default installs – particularly in the Dedicated Virtual Servers (dv).  No big deal, a few days of trial and error, digging into how others have gotten errors, and I’ve got a new set of instructions for installing both YUM and GIT.

To install YUM run the following:

  1. 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 –replacefiles –replacepkgs –oldpackage –nodepsrpm
  2. rpm -Uvh  http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  3. rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  4. rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  5. rpm -Uvh –nodeps http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-22.el5.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  6. rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.8.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  7. rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  8. rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
  9. rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm –replacefiles –replacepkgs –oldpackage –nodepsrpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-33.el5.centos.noarch.rpm  –replacefiles –replacepkgs –oldpackage –nodeps

Before running the GIT installer, make sure the Libraries are synched up.  I ran into a lot of problems by not running this command, so I strongly recommend using it.  To Install GIT run the following two commands on your server.

  1. rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  2. yum install git

From there it’s as simple as navigating to your directory and running the GIT CLONE command.

Good luck with your YUM and GIT installs on MediaTemple Dedicated Virtual Servers.

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.