Redhat7 的 yum 源配置教程
前言:redhat 是收费的,源自然也没有免费的可以用。而 centos 为什么火?因为 centos 就
是相当于 redhat 的免费版,两者师出同源,所以既然要使用 redhat,我们不得不为 redhat
配置 centos 的源,下面是教程。
这是需要用到的所有指令:
wget https://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-
168.el7.centos.noarch.rpm --no-check-certificate
wget https://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-
9.el7.noarch.rpm --no-check-certificate
wget https://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-
10.el7.x86_64.rpm --no-check-certificate
wget https://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-
1.1.31-54.el7_8.noarch.rpm --no-check-certificate
wget https://mirrors.163.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-
10.el7.noarch.rpm --no-check-certificate
wget https://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-4.11.3-45.el7.x86_64.rpm
--no-check-certificate
rpm -ivh --force *.rpm
vi /etc/yum.repos.d/rhel.debuginfo.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]