红帽7.2更换网络yum源
2017-11-07 15:54
218 查看
红帽7.2换网络YUM源 方法
卸载软件包
配置163网络yum源
卸载软件包
[root@localhost ~]# rpm -aq|grep yum|xargs rpm -e --nodeps [root@localhost ~]# rpm -aq|grep python-iniparse|xargs rpm -e --nodeps下载以下软件包
[root@localhost ~]# wget http://mirrors.163.com/centos/7.2.1511/os/x86_64/Packages/yum-3.4.3-132.el7.centos.0.1.noarch.rpm [root@localhost ~]# wget http://mirrors.sohu.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm [root@localhost ~]# wget http://mirrors.sohu.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm [root@localhost ~]# wget ftp://rpmfind.net/linux/centos/7.3.1611/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm[/code] 安装软件包
[root@localhost ~]# rpm -ivh *
配置163网络yum源
[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=0OK,成功。
相关文章推荐
- Rhel7.2的网络配置,防火墙、SELinux服务关闭及YUM源配置
- RHEL6.5与7.2本地与网络YUM源配置
- centOS下更换网络yum源
- RHEL7.2和RHEL6.5配置网络yum源和本地yum源
- RHEL7.2和RHEL6.5的配置网络yum源和本地yum源
- 【Linux】红帽7搭建网络YUM源
- 【Linux】红帽7搭建网络YUM源
- redhat 实验网络yum源的安装
- 红帽 Red Hat Linux相关产品iso镜像下载【百度云】【更新7.2】
- 网络&本地yum源安装
- Centos的yum源更换为国内的阿里云源
- RHEL系统部署网络yum源
- 为CentOS添加网络yum源
- CentOS 6.3下本地yum源与网络yum源的配置使用(转)
- 更换CentOS的yum源
- Linux之更换yum源
- 更换本地的yum源为阿里云提供的镜像
- 实战精准基线安装网络yum源和lamp软件环境
- rhel-server-7.1更换yum源(CentOS7)
- centos 7 更换yum源