Red Hat Bugzilla – Bug 1025963
yumdownloader --resolve overzealous with dependencies
Last modified: 2013-11-11 04:54:46 EST
Description of problem:
yumdownloader is way overzealous with dependencies. For example, ifyou enter:
yumdownloader --resolve rpm rpm-libs rpm-build-libs rpm-python
will result in some 40+ packages which includes *** gcc *** ... are you serious!?!?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
That might be wrong, as I don't see any obvious gcc dependency. Could you run yumdownloader with '-v' and attach the output, so we see what exactly requires gcc? Thanks!
Created attachment 820015 [details]
with any --resolve
Created attachment 820016 [details]
yumdownloader -v --resolve rpm rpm-libs ...
OK, I am running on a x86_64 system (surprise) and only hace x86_64 packages installed. So, what got sucked in were all of the extras i686 packages needed when the rpm*i686 packages were downloaded. I did not want any i686 packages. I tried to limit what happened by specifying --archlist=x86_64 but that had no effect and I thought that it should have.
I see the problem. "yumdownloader --resolve foo" works behind the scene much like "yum --downloadonly install foo". You asked for "rpm-build-libs", without specifying the architecture. Since there are both x86_64 and i686 arches available, and x86_64 is already installed, it tries to use i686.
I assume this is the expected behavior:
You probably don't want to download rpm-build-libs.i686 and all it's deps, so just specify the arch with "yumdownloader --resolve rpm-build-libs.x86_64".
OK, now I understand. I had tried --archlist=x86_64 with no effect. This information should be added to the man-page.
Closing, as the described behavior is intended.