Redhat5-64bit yum源修改为CentOS的yum源问题
2012-11-29 17:32
309 查看
解决方案:
1.卸载redhat自带的yum组件
[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps
2.安装centos的yum包
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
root@localhost ~]# rpm -ivh yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm --nodeps
[root@localhost ~]# rpm -ivh yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm --nodeps
[root@localhost ~]# rpm -ivh yum-3.2.22-39.el5.centos.noarch.rpm --nodeps
3. 下载更新源,并存放在系统目录中
[root@localhost ~]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
[root@localhost ~]# mv CentOS_Base.repo /etc/yum.repos.d/
4.生成缓存并进行安装
[root@localhost ~]# yum makecache
1.卸载redhat自带的yum组件
[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps
2.安装centos的yum包
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
root@localhost ~]# rpm -ivh yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm --nodeps
[root@localhost ~]# rpm -ivh yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm --nodeps
[root@localhost ~]# rpm -ivh yum-3.2.22-39.el5.centos.noarch.rpm --nodeps
3. 下载更新源,并存放在系统目录中
[root@localhost ~]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
[root@localhost ~]# mv CentOS_Base.repo /etc/yum.repos.d/
4.生成缓存并进行安装
[root@localhost ~]# yum makecache
相关文章推荐
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- 修改RedHat的yum源为CentOS的yum源
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- RedHat的yum源修改为CentOS的yum源
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- RedHat Enterprise Linux 6.4使用Centos 6的yum源问题
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- redhat/centos修改yum源
- redhat 6设置CentOS的yum源----部分修改
- 配置(1) CentOS7 - yum源修改
- CentOS(RedHat)命令行临时修改IP地址、网关、DNS
- RedHat Enterprise Linux 6.4使用Centos 6的yum源
- RedHat Enterprise Linux 6.4使用Centos 6 的yum源
- RedHat Enterprise Linux 6.4使用Centos 6 的yum源
- redhat里面使用centos的yum源
- linux修改或者配置IP地址、网络YUM源(针对Centos)
- RedHat Enterprise Linux 6.4使用Centos 6 的yum源
- centos修改yum源