2010-02-25

[CentOS] yumが使えないときにyumをインストールする方法

WEBKEEPERS申し込んだらyumコマンドが使えなかったのでインストールしたメモ
(CentOS 5.4 i386用)

yum list | grep php
とやったら
-bash: yum: command not found
とyumが使えなかった。

cd /usr/local/src/
mkdir yumrpm
cd yumrpm

wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/sqlite-devel-3.3.6-5.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/libxml2-2.6.26-2.1.2.8.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm

rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

rpm -ihv python-elementtree-1.2.6-5.i386.rpm
rpm -ihv sqlite-3.3.6-5.i386.rpm
rpm -ihv sqlite-devel-3.3.6-5.i386.rpm
rpm -ihv python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -ihv python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -ihv rpm-python-4.4.2.3-18.el5.i386.rpm
rpm -ihv m2crypto-0.16-6.el5.6.i386.rpm
rpm -ihv python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -ihv libxml2-2.6.26-2.1.2.8.i386.rpm
rpm -ihv yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
rpm -ihv yum-3.2.22-20.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm

ふう、すっきり。

参考サイト
yumコマンド 再インストール - はるはる。の開発日記
なんとなくメモリ| yum
コメントを投稿