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:
- 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
- rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm –replacefiles –replacepkgs –oldpackage –nodeps
- rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
- 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
- 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
- rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.8.i386.rpm –replacefiles –replacepkgs –oldpackage –nodeps
- 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
- 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
- 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.
- rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
- 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.
