Installing the YUM package manager on a (dv) Dedicated-Virtual 3.5 Server
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.
WARNING:
(mt) Media Temple makes a best effort to ensure the accuracy of all content contained herein. Please use our feedback form below if you would like to report any inaccuracies. Please note that our feedback form is not an official support channel.
For more help with YUM please see this thread in the Parallel's Forum.
NOTE:
This article has the following dependencies:
- If you currently do not have your root user enabled or our Developer Tools installed please visit the Root Access & Developer Tools section of your AccountCenter.
- 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.
- Please read the following Parallels article regarding updating your server using YUM.
Installing yum
- If you have not already, please install the developer tools via your AccountCenter.
- Log into your (dv) 3.5 Dedicated-Virtual Server as root using via ssh:
ssh root@mt-example.com - Install yum, the package management system for the CentOS 5 operating system:
# Install Python Iniparse (a new dependancy of Yum) rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm # Now install Yum, Yum FastestMirror, and ProtectBase rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/yum-protectbase-1.1.16-13.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.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
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | shBe sure to choose Plesk 8 when prompted for Plesk version. We also suggest installing their GPG key:
wget http://www.atomicrocketturtle.com/RPM-GPG-KEY.art.txt
rpm --import RPM-GPG-KEY.art.txt To use this repository you will also need to remove the Plesk SiteBuilder package with the following command:
yum remove sb-publish
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 remove PKGNAME
Please reference the official documentation for yum to further understand the power of this command.
Notes/Supplemental Resources:
Revisions:
10-22-2009: Fixed the yum repo command
08-24-2009: Fixed the yum remove command
08-21-2009: Added info for the AtomicTurtle GPG key
08-10-2009: Corrected bad links and commands
06-23-2009: Added tip box, and changed article title
06-04-2009: Added step to install Developer Tools
02-26-2009: Article Creation
Fields marked with an asterisk(*) are required. Comment on this article