redhat带的yum是收钱的,故此CentOS便很是好---免费(企业也很多用CentOS)。那么安装了RedHat如何使用CentOS的yum源呢:
- 卸载yum:
-
#rpm -qa|grep yum|xargs rpm -e --nodeps
安装centos的yum
- # wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
- #wget
- #wget
- # rpm -ivh *.rpm
下载更新源:
- # wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
-
#mv CentOS_Base.repo /etc/yum.repos.d/CentOS-Base.repo
生成缓存并安装:
阅读(7356) | 评论(0) | 转发(0) |