Support / KnowledgeBase

 
Search the KnowledgeBase Search

Installing the YUM package manager on a (dv) Dedicated-Virtual 3.0 Server

  • Applies to: (dv) 3.0

  • Difficulty: Medium

  • Time needed: 5 minutes

  • Tools needed: SSH, root access

 

Yum is an automatic updater and package installer/remover for rpm systems, including CentOS.  CentOS is the operating system powering our entire (dv) Dedicated-Virtual line.  Yum is the preferred method for installing software on your server since it automatically computes dependencies and determines what should occur to install packages.

NOTE:

This article has the following dependencies:

  • Whenever installing Third-Party software please consult the official documentation. (mt) Media Temple does not support the installation and configuration of software not installed at time of service activation. Please consult our (dv) Scope of Support page for further explanation.
  • mt-example.com is used as an example. Please be sure to replace this text with the proper information for your site or server.

Installing yum

  1. If you have not already, please install the developer tools via your AccountCenter.
  2. Log into your (dv) 3.0 Dedicated-Virtual Server as root using via ssh:

     ssh root@mt-example.com
  3. Install yum, the package management system for the CentOS 4 operating system:
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-2.6.16-12.6.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-2.6.16-12.6.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-12.6.i386.rpm
    rpm -Uvh http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm
    
    
    

TIP:

You may want to add the Plesk repository provided by Atomic Turtle. You can add it with the following command:

 wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

Be sure to choose Plesk 8 when prompted for Plesk version.


Using yum

Yum has several options, but the basic usage is:

yum install PKGNAME 

This will download and install the most recent version of the package, including resolving any dependencies.

Yum can also be used to uninstall packages:

yum uninstall PKGNAME

 Please reference the official documentation for yum to further understand the power of this command.

Notes/Supplemental Resources:

Revisions:

06-15-2009: Article Creation


User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue