rpm 安装包 更换centos 源

centos 源

https://mirrors.tuna.tsinghua.edu.cn/help/centos/

https://developer.aliyun.com/mirror/centos 

# 更换 yum 源

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

# 更换 epel 源

wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
# 清理缓存并生成新的缓存

yum clean all

yum makecache

yum repolist
cd /etc/yum.repos.d/ 

mkdir base_centos

mv *.repo base_centos

wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 

wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum clean all 

yum makecache

yum repolist

rpm 安装包

http://rpmfind.net/linux/rpm2html/search.php?query=hdf5-devel(x86-64)

发布了157 篇原创文章 · 获赞 85 · 访问量 34万+

猜你喜欢

转载自blog.csdn.net/Areigninhell/article/details/103386200