使用reposync工具将yum安装包保存到本地的方法

使用reposync工具将yum安装包保存到本地的方法

版权声明:原创作品,谢绝转载!否则将追究法律责任。 ————— 作者:kirin

Anolis7/centos7

1、reposync

1.1、安装包下载工具(该工具是YUM工具包的子集)

yum install -y yum-utils

2、使用工具方法

#、示例:
[root@kirin365 data]# reposync -r base -p /data/

#、参数解释:
-r :指定本地已经配置的yum仓库的repo源名称
-p :指定下载的文件保存路径

Anolis8/centos8

1、reposync

1.1、安装包下载工具(该工具是YUM工具包的子集)

yum install -y yum-utils

2、使用工具方法

#、示例:
[root@kirin365 /home/anolis8/]# reposync --repo BaseOS -p /home/anolis8/


#、参数解释:
--repo :指定本地已经配置的yum仓库的repo源名称
-p :指定下载的文件保存路径
posted @ 2023-11-17 22:53  kirin(麒麟)  阅读(136)  评论(0编辑  收藏  举报
Δ