Mercurial on a MediaTemple DV 4 Server

May 30, 2012 1 min read

I stick with package managers when I can. In this case, yum would do the trick but it isn’t aware of Mercurial by default. (Try yum install mercurial with a fresh DV4 and it won’t know what to do.) To help it out, we’ll add another catalog of sorts, called RPMforge, that it can search through. We just need to get the right catalog, load it up, and tell yum to install Mercurial again.

  1. Make sure you’ve got yum installed and your root access is enabled.
  2. SSH into your server as the root user.
  3. Create a temporary folder mkdir rpm-download.
  4. Get all up in that directory cd rpm-download.
  5. Download the latest x86_64 RPMforge package for CentOS 5 wget https://www.rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm.
  6. Add this repository to our search set rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
  7. Install Mercurial! yum install mercurial
  8. Make sure it worked hg
***

Tagged

Updated 6/16/19 at 7:49pm