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

Reposync for specific packages

· 52CE 我爱测

I have private Linux repositories only for my server. I am making it using createrepo and reposync. But I am not using all of packages that provided when using command reposync to download package. Is there a way to reposync spec…

问题原文

原帖链接 · Ilham Sulaksono · CC BY-SA 3.0

I have private Linux repositories only for my server. I am making it using createrepo and reposync. But I am not using all of packages that provided when using command reposync to download package.

Is there a way to reposync specific packages so I can save my storage disk? Is it possible or not? I already searched and did not find any result.

已采纳解答

原帖链接 · reddot · CC BY-SA 3.0

There is another utility in yum-utils to download only specific packages and related dependencies called repotrack:

repotrack pkg1-name pkg2-name

It will actually download all of package dependencies up to basic packages. To avoid this behavior limit repositories you want to mirror with --repoid switch:

repotrack --repoid=epel pkg1-name pkg2-name

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

资料来源与适用范围

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

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

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