[Updated for the dv 3.5 here]

I’m currently testing a web application on a MediaTemple “dedicated virtual server” (dv). This means I need to have Subversion installed to check the current version of the application from the repository. Unfortunately, while MediaTemple installs Subversion on their (oft-derided) “grid-server” (gs), they don’t install it on the (dv).

What to do? I put in a request with MediaTemple, but after vainly waiting 24 hours for a response, I decided to use yum to install Subversion. This seems like a better idea than working with rpms; the likelihood is that I’ll need to install other packages, after all. Yum doesn’t come with the (dv), however – for reasons unknown – so the first thing we need to do is get yum (following this post) [in a comment below, Bart has updated the location of the rpms].

$ wget http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm

$ wget http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm

$ wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm

It has dependencies, so we need get them too.

$ rpm -ivh --nodeps http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-6.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/rpm-python-4.3.3-18_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm

$ rpm -ivh –nodeps http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/rpm-python-4.3.3-22_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm

$ rpm -ivh –nodeps http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/rpm-python-4.3.3-23_nonptl.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm

Now we can install yum:

$ rpm -Uvh yum-2.4.3-3.el4.centos.noarch.rpm

Check if it’s installed:

$ rpm -q yum

With yum installed successfully, we can use it to install Subversion.
$ yum install subversion

That should do it.

-

I should add that I didn’t know at first what flavor of Linux was running on MediaTemple’s (dv). I found that we were dealing with CentOS 4.4 by running:

$ cat /etc/*release /etc/*version

10 Responses to “Installing Subversion on a MediaTemple DV 3.0 Virtual Server”

  1. Carlos Says:

    Man I love you ;)

    After 2 months passing GPU limit, I’ve just switched to dvServers. I lagh when they say that 99% of the sites don’t need more than 1000 GPUs. Bad for them.

  2. Michael Says:

    I ended up dropping my DV because the installed PHP didn’t come with the Tokenizer module (required for a component of the application), and I didn’t want to recompile PHP, because it would have meant unsubscribing from the automatic updates to the server software. Because the Tokenizer is included by default in almost every PHP distribution, I couldn’t find an RPM to add it to the installed PHP. It was pretty disappointing, and, as I’ve come to expect, MediaTemple support was less than helpful in resolving the issue.

  3. Jeff Hartman Says:

    What version of Subversion did it install? svn –version says I already have 1.1.4, but I want 1.4.3.

    Please shoot me an email if you could… Thanks!

  4. Michael Hellein Says:

    I can’t check the version, sadly, because I got rid of my dv. I’m pretty sure that it was a 1.4.x version – it was whatever yum gave me.

  5. Bart Says:

    Hi Michael,

    Thanks for this how-to…
    You saved me a couple of hours work!!

    Bart
    The Netherlands

  6. Bart Says:

    oh, the links you provided did not work on 11 juli 2007. I had to use:

    wget http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm

    rpm -ivh –nodeps http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/rpm-python-4.3.3-22_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm

  7. tim garrison Says:

    hi, thank you SOOOO much for this.

    while i love media temple overall, the difficulty of going off their beaten path is so frustrating. i am installing memcache/pecl memcache for a new project im working on, it is on a dv3 server with them as well, and at the moment i am trying to get yum following your instructions, here is the error i came across while installing the python-sqlite rpm:

    rpm -ihv http://centos.mirror.vpslink.com/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
    Retrieving http://centos.mirror.vpslink.com/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
    warning: /var/tmp/rpm-xfer.T5m3xs: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    libsqlite3.so.0 is needed by python-sqlite-1.1.7-1.2.1.i386

    do you have any idea what this would be? does it mean i dont have sqlite installed? i thought it came in media temples dev tools…

    thanks again for your article.

  8. tim garrison Says:

    nevermind, i just needed to install the sqlite rpm. anyway, thanks again for the article!

  9. Michael Hellein Says:

    Tim, I’m glad you got that working. Considering the number of people who decide to ‘upgrade’ from their grid server to dedicated virtual, I would expect mediatemple would reduce the differences in configuration between the gs and dv instances. And it seems that something as basic as a package manager would be installed by default!

  10. Jay Says:

    if you run into dependency errors, make sure you format the RPM command as follows:

    rpm -ivh –[two dashes and without brackets]nodeps

    I ran into this when copying and pasting.