简体   繁体   中英

How to recursivly download RPM dependencies?

I want to write a mini script that downloads all the recursive dependencies of an RPM package in Linux RedHat.

When I use:

repoquery -a --requires --recursive --resolve PACKAGE_NAME

I'm not getting all the recursive dependencies, but when I use:

repoquery -a --tree-requires PACKAGE_NAME

I'm getting all the dependencies but I'm not getting a usable list that I can pipeline into yumdownloader .

What should I do?

您可以尝试repotrack它将下载一个或多个包和所有依赖项。

如果你是像我这样的未来(Fedora 23+),yum被dnf取代,而repotracker不再有效,你可能会发现这个bash脚本很有用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM