我有私人的Linux存储库只为我的服务器。 我正在使用createrepo和reposync。 但是我没有使用使用命令reposync下载包时提供的所有软件包。
有没有办法来reposync特定的软件包,所以我可以保存我的存储磁盘? 有没有可能? 我已经search,没有find任何结果。
根据一个centos 7主机中的reposync手册页:
reposync(1) NAME reposync - synchronize yum repositories to a local directory SYNOPSIS reposync [options] DESCRIPTION reposync is used to synchronize a remote yum repository to a local directory, using yum to retrieve the packages.
所以我想答案是否定的,你不能使用reposync来挑选软件包(但是你可以使用–newest-only开关只下载每个repo的最新软件包)。 createrepo是创build和维护自己的存储库的工具,虽然;-)
作为naxto asenjo的previos响应,我还没有find任何select与reposync下载单个rpm。 你可以尝试如果yumdownloader( https://www.linuxtechi.com/download-rpm-using-yumdownloader-centos-7-rhel-7/ )符合您的需求。 它允许下载一个单独的rpm