redhat配置网络yum源

rpm -Uvh yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm 

在这里插入图片描述rpm -Uvh python-urlgrabber-3.10-9.el7.noarch
在这里插入图片描述rpm -Uvh rpm-*
在这里插入图片描述
包括下面几个包
redhat配置网络yum源_第1张图片rpm -Uvh yum-*
在这里插入图片描述
redhat配置网络yum源_第2张图片
vim /etc/yum.repos.d/CentOS-Base.repo

#released updates
[updates]
name=CentOS-$7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

yum clean all
yum makecache

所有的文件可在
http://mirrors.163.com/centos/7/centosplus/x86_64/Packages/
获得

你可能感兴趣的:(linux)