centOS5 安裝yum

這兩天在評估轉換VPS(虛擬實體主機)的供應商,由本來的iSmlie 改到戰國策,價格稍微貴一點,不過目前看起來速度ok。重點是他們有提供電話服務24H的喔。

不過戰國策提供的linux VPS 拿到的時候其實滿傻眼的。因為他的centOS中竟然沒有yum。這對我們這種linux菜鳥來說簡直快要抓狂。這個時候怎麼辦呢?

找了好多文章上面提供的yum套件rpm安裝檔 連結都失效,終於被我在一個國外網站上面找到有人分享這個:

#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/python-elementtree-1.2.6-5.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.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/popt-1.10.2.3-18.el5.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-4.4.2.3-18.el5.i386.rpm --force --nodeps

基本上這個已經包含了所有安裝yum時所需要的相依套件....超幸福



延伸閱讀:
當yum的rpm資料庫損毀時:請參照下面網址處理
http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/

留言