国内网络yum源文件下载地址

您所在的位置:网站首页 如何查看百度网盘下载文件源地址 国内网络yum源文件下载地址

国内网络yum源文件下载地址

2024-07-09 14:34| 来源: 网络整理| 查看: 265

前言

我所写出的都是各大国内yum源地址,通过链接可直接转自下载,并且根据不同版本的linux下载各自版本的yum源文件。

阿里云

http://mirrors.aliyun.com/repo/

重庆大学

http://mirrors.cqu.edu.cn/repo/centos/

网易

http://mirrors.163.com/.help/centos.html

清华

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

实施

注:linux需联网

直接转到网址,下载对应的yum源文件,导入linux中,或者直接复制链接,通过wget工具在linux中直接下载。

以搭建阿里云的网络yum源为例:

首先点击以上的阿里云链接,进入下载网站 在这里插入图片描述 根据自己使用的Linux发行版本来自行选择需要下载的网络yum源文件

在这里插入图片描述 选择完成之后,右击选择复制链接地址即可,接下来在linux中下载就可以了。

yum intall -y wget #安装wget工具 cd /etc/yum.repos.d/ #转到yum源文件存放路径 tar zcf backup_repo.tar.gz * #创建一个网络yum源文件备份 rm -rf CentOS* #删除所有yum源文件

准备工作完成,接下来开始通过刚才复制的链接下载阿里的网络yum源。

wget http://mirrors.aliyun.com/repo/Centos-7.repo #下载yum源文件 --2020-04-06 15:03:56-- http://mirrors.aliyun.com/repo/Centos-7.repo 正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 111.6.206.245, 111.6.206.242, 111.6.206.243, ... 正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|111.6.206.245|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:2523 (2.5K) [application/octet-stream] 正在保存至: “Centos-7.repo” 100%[================================>] 2,523 --.-K/s 用时 0s 2020-04-06 15:03:58 (506 MB/s) - 已保存 “Centos-7.repo” [2523/2523])

清除缓存

yum clean all

重新搭建yum源

yum makecache

下载cmake,进行测试

[root@linus yum.repos.d]# yum install -y cmake 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com 正在解决依赖关系 --> 正在检查事务 ---> 软件包 cmake.x86_64.0.2.8.12.2-2.el7 将被 安装 --> 解决依赖关系完成 依赖关系解决 ========================================================================== Package 架构 版本 源 大小 ========================================================================== 正在安装: cmake x86_64 2.8.12.2-2.el7 base 7.1 M 事务概要 ========================================================================== 安装 1 软件包 总下载量:7.1 M 安装大小:27 M Downloading packages: cmake-2.8.12.2-2.el7.x86_64.rpm | 7.1 MB 00:03 Running transaction check Running transaction test Transaction test succeeded Running transaction 正在安装 : cmake-2.8.12.2-2.el7.x86_64 1/1 验证中 : cmake-2.8.12.2-2.el7.x86_64 1/1 已安装: cmake.x86_64 0:2.8.12.2-2.el7 完毕!

以上网络yum源就搭建完成了。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3