Warning: Missing argument 2 for wp_widget() in /www/users/haoxm.net/wp-includes/widgets.php on line 76
孤独小客 » Blog Archive » linux下安装yum

linux下安装yum

实验环境:CentOS linux 5.4
系统预装组件包:只装开发工具
[root@RedHat soft]#rpm -Uvh http://mirrors.163.com/centos/5.5/os/i386/CentOS/yum-

3.2.22-26.el5.centos.noarch.rpm http://mirrors.163.com/centos/5.5/os/i386/CentOS/yum-

fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm

http://mirrors.163.com/centos/5.5/os/i386/CentOS/yum-metadata-parser-1.1.2-

3.el5.centos.i386.rpm
Retrieving http://mirrors.163.com/centos/5.5/os/i386/CentOS/yum-3.2.22-

26.el5.centos.noarch.rpm
Retrieving http://mirrors.163.com/centos/5.5/os/i386/CentOS/yum-fastestmirror-1.1.16-

14.el5.centos.1.noarch.rpm
Retrieving http://mirrors.163.com/centos/5.5/os/i386/CentOS/yum-metadata-parser-1.1.2-

3.el5.centos.i386.rpm
Preparing… ########################################### [100%]
1:yum-metadata-parser ########################################### [ 33%]
2:yum-fastestmirror ########################################### [ 67%]
3:yum ########################################### [100%]
[root@RedHat ~]# wget http://www.haoxm.net/tools/yum_forAS5.5/CentOS-Base.repo
–2010-11-28 14:53:47– http://www.haoxm.net/tools/yum_forAS5.5/CentOS-Base.repo
Resolving www.haoxm.net… 218.85.133.154
Connecting to www.haoxm.net|218.85.133.154|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 886 [text/plain]
Saving to: `CentOS-Base.repo’

100%[======================================>] 886 –.-K/s in 0s

2010-11-28 14:53:47 (103 MB/s) – `CentOS-Base.repo’ saved [886/886]
[root@RedHat ~]# cp CentOS-Base.repo /etc/yum.repos.d/
cp: overwrite `/etc/yum.repos.d/CentOS-Base.repo’? y
[root@RedHat soft]# rpm –import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
现在yum就可以使用了。

Leave a comment

Your comment