(dv) 3.5:Install YUM
- This page was last modified on May 7, 2012, at 14:05.
From (mt) Community Wiki
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
- You must have the Developer Tools installed.
- You must have SSH access set up for root or a sudo user.
- Please read this Parallels article regarding updating your server with YUM.
Instructions
- 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.
- Log into your server with a root or sudo user via SSH:
ssh root@example.com - 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.
- 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.
- YUM is now installed.