Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
USTC_LUG
Conversations
About
请教如何搭建仅用于系统更新的centos镜像?
41 views
Skip to first unread message
Wu Xin
unread,
Aug 12, 2023, 6:57:45 AM
8/12/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to USTC_LUG
各位好,我们内网有不少linux服务器(基本都是centos系),考虑到默认服务器是不能上外网的,因此yum update就是个大问题。所以我们想在内网搭建一个本地的镜像,仅供服务器做一些更新用,也就是只要能跑yum update就行了,也不需要额外的rpm包,真要用到临时开外网就是了。
请问这个需求如何搭建快速一点?是不是类似
http://mirrors.ustc.edu.cn/centos/
这个镜像全部拉下来,然后本地做个http服务就行了?但是我看这里还有iso啥的,感觉又有点浪费...
Thanks!
Shengjing Zhu
unread,
Aug 12, 2023, 7:06:36 AM
8/12/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ustc...@googlegroups.com
On Sat, Aug 12, 2023 at 6:57 PM Wu Xin <
baal...@gmail.com
> wrote:
>
> 各位好,我们内网有不少linux服务器(基本都是centos系),考虑到默认服务器是不能上外网的,因此yum update就是个大问题。所以我们想在内网搭建一个本地的镜像,仅供服务器做一些更新用,也就是只要能跑yum update就行了,也不需要额外的rpm包,真要用到临时开外网就是了。
>
> 请问这个需求如何搭建快速一点?是不是类似
http://mirrors.ustc.edu.cn/centos/
这个镜像全部拉下来,然后本地做个http服务就行了?但是我看这里还有iso啥的,感觉又有点浪费...
>
可以用 rsync 同步,有--exclude=PATTERN参数可以过滤不需要的文件。
参考
https://mirrors.ustc.edu.cn/help/rsync-guide.html
不过我更建议在一台跳板机上跑个软件源的代理。rsync 的话还需要你定时更新。
代理可以用 apt-cacher-ng (虽然名字是apt开头,但也支持yum)。
可以参考我的 docker 镜像以及使用方法
https://hub.docker.com/r/zhusj/apt-cacher-ng
--
Regards,
Shengjing Zhu
Reply all
Reply to author
Forward
0 new messages