How To Download A RPM Package With All Dependencies In CentOS

download a RPM package with all dependencies

3 Responses

  1. Holger Joukl says:

    Very helpful!

    One thing I just noted is that my yumdownloader version does download more packages than necessary for the target arch, even if you explicitly specify it, see also https://bugzilla.redhat.com/show_bug.cgi?id=1045871.

    Looks like this is fixed with yum-utils-1.1.31-23.fc20 according to the bug report.

    To work around it seems you can do

    yumdownloader -x *i686 –archlist=x86_64
    Whereas method 1 –downloadonly restricts appropriately to the target arch, just like a regular yum install .

    Thanks for sharing,
    Holger

  2. Tarvinder Singh says:

    Thanks for sharing the knowledge. Very helpful

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.