随心一记

一二三四五,上山打老鼠


  • 首页

  • 归档

  • 标签
ywcsb

ywcsb

游戏可以不玩,小说不能不看。

153 日志
3 分类
42 标签
RSS
GitHub 知乎 随心一记
Links
  • 随心一记
  • 追梦人物的
  • MSDN

centos同步yum源到本地

发表于 2019-11-18 | 阅读 945 | 分类于 系统运维 |
删除/etc/yum.repos.d下所有源文件

下载源repo到本地

wget  -O /etc/yum.repos.d/aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo
安装yum-utils提供reporsync服务
yum install yum-utils -y
查看yum源仓库标识
[root@localhost yum.repos.d]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
源标识 源名称 状态
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 9,591
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com 196
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com 657
repolist: 10,444
根据源标识同步源到本地目录
[root@localhost ~]# reposync -r base -p /data/rpm/
觉得不错,支持一下!
geerniya WeChat Pay

微信打赏

geerniya Alipay

支付宝打赏

# 系统运维
本地NTP服务器搭建
Zabbix MySQL分区表配置

发表评论

共 0 条评论

    暂无评论
© 2018 - 2022 ywcsb
冀ICP备17022045号-1
Supported by 腾讯云