How to install yum on Plesk 8 / Centos 5

My new VPS is running Plesk 8.x which looks awesome (I think it uses ExtJS for the UI), but oddly has a fairly steep learning curve to do simple things. Inexplicably, it starts you out without yum (perhaps to encourage you to use their package manager)? Their package manager couldn’t seem to resolve the dependencies to install yum for me (although it shows up as an available package), so I had to install it by hand, having only rpm at my disposal.

These are the steps that eventually worked (replace the “wg” with “wget”, since WordPress doesn’t like seeing that in a post):


# rpm -ivh ftp://zid-lux1.uibk.ac.at/pub/dist/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.2.i386.rpm

# wg ftp://zid-lux1.uibk.ac.at/pub/dist/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm
# rpm -ivh python-urlgrabber-3.1.0-2.noarch.rpm   

# wg ftp://zid-lux1.uibk.ac.at/pub/dist/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
# rpm -ivh yum-metadata-parser-1.1.2-2.el5.i386.rpm yum-3.2.8-9.el5.centos.1.noarch.rpm

# wg ftp://zid-lux1.uibk.ac.at/pub/dist/centos/5/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm
# rpm -ivh yum-3.2.8-9.el5.centos.1.noarch.rpm  

Update 8/11/08

The above FTP links no longer work. Here is a new script that works. Note the –nodeps, to avoid circular references you run into otherwise.

rpm -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
rpm -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.3.i386.rpm
rpm -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm --nodeps -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
rpm --nodeps -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
rpm -ivh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm

Leave a Reply

Your email address will not be published. Required fields are marked *