大网数据广告活动
服务器运维问答

reposync/createrepo or rsync for mirroring a yum repository?

· 52CE 我爱测

In the redhat docs there is this howto https://access.redhat.com/solutions/23016 It uses reposync and createrepo to mirror a repository server. But you can also use rsync to just mirror the whole repository and you don't has to u…

问题原文

原帖链接 · High Ball · CC BY-SA 4.0

In the redhat docs there is this howto https://access.redhat.com/solutions/23016

It uses reposync and createrepo to mirror a repository server.

But you can also use rsync to just mirror the whole repository and you don't has to use createrepo (if I understand correctly).

So, please can someone tell me the difference between this two methods?

已采纳解答

原帖链接 · HBruijn · CC BY-SA 4.0

rsync mirrors a file-system and directory structure and requires that you have sufficient access to the file an directory layout on the source system. You may not have enough rights for that and also not every yum repository is a directory, yum repositories managed by for instance Red Hat's satellite server are backed by a database.

Therefore unlike rsync the more specific tool reposync will work for every yum repository.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-02-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。