Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在管理一个 RHEL 6 yum repo,repo 源文件只是磁盘 ISO 的本地副本,出于某种原因,我需要用新版本的 RPM 替换这个 repo 中的一些 RPM 包,我试过:1 :将新的 RPM 包放入 Packages dir 2:通过“createrepo”重新创建 repo
但是任何客户端在运行 yum install 时,它仍然有旧版本的 RPM,我怎样才能让它按预期工作?
使用命令:
createrepo --更新
有时,您的存储库中有很多包,当只添加或更改了几个包时,为每个包重新生成元数据太耗时了。这就是 --update 派上用场的地方。您像以前一样运行 createrepo,但您将 --update 标志传递给它。像这样: createrepo --update /srv/my/repo