CentOS8Linux中配置网易云网络yum源安装软件

在CentOS8Linux中配置网易云网络yum源安装软件

前提是你的操作系统是CentOS-Linux

你已经配置好了本地yum源,并且你的网络是可用的。

本地yum源配置请参考:https://www.cnblogs.com/fusheng11711/p/10863845.html

下载repo文件

先安装wget

yum install -y wget (前提需要配置本地yum源)
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

备份并替换系统的repo文件

cp CentOS7-Base-163.repo /etc/yum.repos.d/ 
cd /etc/yum.repos.d/ 
mv CentOS-Base.repo CentOS-Base.repo.bak 
mv CentOS7-Base-163.repo CentOS-Base.repo

执行yum源更新命令

yum clean all 
yum makecache 
yum update

配置完毕。

原文地址:https://www.cnblogs.com/fusheng11711/p/11810509.html