linux常用国内的免费源及其各别的配置方法.阿里源,epel源,搜狐网易等等..

  国内的一些开源的平台收集的源,确实给我们提供了很多便利,所以我就稍微收集整理了一些常用的源和网址,我也不确定能用到什么时候!欢迎评论区留言!

搜狐开源镜像站
 
网易开源镜像站
 
阿里云开源镜像站
 
公云开源镜像站
 
首都在线开源镜像站
 
linux运维派开源镜像站
 
中科院开源镜像站
 
北京理工大学开源镜像站
 
北京交通大学开源镜像站
 
兰州大学开源镜像站
 
中国科技大学开源镜像站
 
浙江大学开源镜像站
 
厦门大学开源镜像站
 
东北大学开源镜像站
 
华中科技大学开源镜像站
 
重庆大学开源镜像站
 
东软信息学院开源镜像站
 
大连理工大学开源镜像站
 
中山大学开源镜像站
 
上海交通大学ftp站
 
北京大学ftp站
ftp://ftp.pku.edu.cn/
 
北京邮电大学ftp站
ftp://ftp.bupt.edu.cn/
 
  1. 备份源yum源
    如果是国内下载的CentOS很可能国内YUM源已经设置好了。
    备份/etc/yum.repos.d/下的*.repo文件。

  2. 在CentOS中配置使用网易和阿里的开源镜像
    wget http://mirrors.aliyun.com/repo/Centos-7.repo
    wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
    或者手动下载repo文件并上传到/etc/yum.repos.d/目录

  3. 清除系统yum缓存并生成新的yum缓存
    yum clean all # 清除系统所有的yum缓存
    yum makecache # 生成yum缓存

  4. 安装epel源
    yum list | grep epel-release
    yum install -y epel-release

  5. 再次清除系统yum缓存,并重新生成新的yum缓存
    yum clean all
    yum makecache

  6. 查看系统可用的yum源和所有的yum源
    yum repolist enabled
    yum repolist all

  7. 测试安装
    yum install openssh-server

原文地址:https://www.cnblogs.com/well-666/p/11480570.html