(dv) 3.5:Install YUM

  • This page was last modified on May 7, 2012, at 14:05.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

(Redirected from (dv):Install YUM)

End of Life Warning

This service has a pending End of Life. Please move to a current service as soon as possible. For more information, please see: (dv) Dedicated-Virtual 4.0: Migration Information.

Contents


Overview

YUM is a package manager for CentOS, the operating system provided with your (dv) Dedicated-Virtual Server. It allows automatic software installation, including software dependencies, and updates. YUM is the recommended method for installing software on your server.

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.

Requirements

Instructions

  1. If you have not already, please Install the Developer Tools through the AccountCenter. If you do not want to do this, please follow the additional instructions in the Python RPM libraries section below.
  2. Log into your server with a root or sudo user via SSH:
    
    ssh root@example.com
    
  3. If you're running an older (dv) server, you should check your server installation is CentOS release 5.* with the following command:
    cat /etc/*release*
    

    If your CentOS release is not 5.*, then some of the RPMs below will fail and you'll need to remove the incompatible installations that were installed. The CentOS 4.* RPMs can be located here.

  4. Install YUM and all dependencies. You can run each line separately if you want to confirm it separately as it prompts your download and installation, or you can copy and paste the whole string of commands and they should execute one after the other.

    For the latest RPMs, please see: http://mirror.centos.org/centos/5/os/i386/CentOS/.

    rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
    rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
    rpm -Uvh --nodeps http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-22.el5.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-8.el5.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
    rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
    

    You should see a confirmation of the download after each line.

  5. YUM is now installed.