系統:readhat 6.2 linux
1、確認RedHat的版本
uname -m
我的是 x86_64
2、在這裏手工找rpm包:http://mirrors.163.com/centos/
系統6.2,按裏面的readme,使用6.0,進入6.0目錄,是x86_64,因此依次進入以下目錄:os/x86_64/Packages/
找以下幾份文件下載:
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm
rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
注意:最後兩個安裝包要放在一起同時安裝,否則會提示相互依賴,安裝失敗。
name=CentOS-6.4 - Base - 163.com
baseurl=http://vault.centos.org/6.4/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://vault.centos.org/6.4/os/x86_64/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6.5 - Updates - 163.com
baseurl=http://vault.centos.org/6.4/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://vault.centos.org/6.4/os/x86_64/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6.5 - Extras - 163.com
baseurl=http://vault.centos.org/6.4/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://vault.centos.org/6.4/os/x86_64/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.5 - Plus - 163.com
baseurl=http://vault.centos.org/6.4/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/6.4/os/x86_64/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6.4 - Contrib - 163.com
baseurl=http://vault.centos.org/6.4/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/6.4/os/x86_64/RPM-GPG-KEY-CentOS-6