How To Download A RPM Package With All Dependencies In CentOS

4 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

    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,

  2. Tarvinder Singh says:

    Thanks for sharing the knowledge. Very helpful

  3. rre4 says:

    How download all source and binary package?

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.