close

安裝

wget http://www.eomy.net/linux/install-yum/centos-yumconf-4-4.5.noarch.rpm
wget http://www.eomy.net/linux/install-yum/libxml2-2.6.16-10.i386.rpm                     
wget http://www.eomy.net/linux/install-yum/libxml2-python-2.6.16-10.i386.rpm
wget http://www.eomy.net/linux/install-yum/python-elementtree-1.2.6-5.el4.centos.i386.rpm 
wget http://www.eomy.net/linux/install-yum/python-sqlite-1.1.7-1.2.1.i386.rpm             
wget http://www.eomy.net/linux/install-yum/python-urlgrabber-2.9.8-2.noarch.rpm           
wget http://www.eomy.net/linux/install-yum/sqlite-3.3.6-2.i386.rpm                        
wget http://www.eomy.net/linux/install-yum/yum-2.4.3-3.el4.centos.noarch.rpm     


wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm

到/etc/yum.repos.d目錄下, 建立CentOS-Base.repo檔案, 檔案內容如下:


[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/4/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

更新
yum-update

全站熱搜
創作者介紹
創作者 王小明 的頭像
王小明

王小明的部落格

王小明 發表在 痞客邦 留言(0) 人氣()