change YUM from redhat 7 to Centos 7
来源:互联网 发布:深入java虚拟机 第四版 编辑:程序博客网 时间:2024/06/05 03:15
#delete redhat yum
rpm -aq|grep yum|xargs rpm -e --nodeps
rpm -aq|grep python-iniparse|xargs rpm -e --nodeps
rpm -e python-urlgrabber-3.10-6.el7.noarch --nodeps
#download from http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/
python-iniparse-0.4-9.el7.noarch.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm
yum-3.4.3-150.el7.centos.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
# write content bellow in /etc/yum.repos.d/rhel-debugyyliu.repo
#####################################################################
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/7/extras//$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.163.com/centos/7/centosplus//$basearch/
gpgcheck=1
enabled=0
#####################################################################
rpm -aq|grep yum|xargs rpm -e --nodeps
rpm -aq|grep python-iniparse|xargs rpm -e --nodeps
rpm -e python-urlgrabber-3.10-6.el7.noarch --nodeps
#download from http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/
python-iniparse-0.4-9.el7.noarch.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm
yum-3.4.3-150.el7.centos.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh python-urlgrabber-3.10-8.el7.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-3.4.3-150.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
# write content bellow in /etc/yum.repos.d/rhel-debugyyliu.repo
#####################################################################
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/7/extras//$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.163.com/centos/7/centosplus//$basearch/
gpgcheck=1
enabled=0
#####################################################################
0 0
- change YUM from redhat 7 to Centos 7
- Redhat enterprise linux 5 install and configration(Yum change to CentOS)
- redhat 7安装CentOS 7 yum源
- Replace Redhat Enterprise Yum to CentOS Yum and Repos
- Redhat 7使用CentOS 7的Yum网络源
- Redhat 7使用CentOS 7的Yum网络源
- Redhat 7使用CentOS 7的Yum网络源
- Redhat 7.0使用CentOS 7 的Yum 网络源
- Redhat 7.0使用CentOS 7 的Yum 网络源
- redhat 7.1 企业版使用centos 7的yum源
- Redhat 7.0使用CentOS 7 的Yum 网络源
- Redhat 7.1使用CentOS 7 的Yum网络源
- redhat 7的 yum 安装,使用的centos镜像
- redhat 7更新yum 源为centos源
- Redhat 7.0安装CentOS 7 的Yum 网络源
- 配置Redhat 7 使用CentOS的YUM源
- Redhat 7.0使用CentOS 7 的Yum 网络源
- Redhat的安装CD变成yum源和How to Change hostname in RHEL 6.3
- IntelliJ IDEA使用
- python enumerate()函数
- IPC讲解比较细致的。转载学习。
- 原生JS实现瀑布流
- http与https
- change YUM from redhat 7 to Centos 7
- 利用Fiddler进行http抓包
- 代码的编译+链接过程的介绍
- 如何使用Spring Cloud – 简单服务流程(服务发现与API调用)
- 常见浏览器兼容问题、盒模型2种模式以及css hack知识讲解
- angularjs $http.get 和 $http.post 传递参数
- 【DVB】DVB 2017年工作计划
- ubuntu-opencv配置与安装
- AnimationCurve