Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1359055 - yumdownloader --urls reports wrong URL
Summary: yumdownloader --urls reports wrong URL
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-utils
Version: 7.3
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
Depends On:
Blocks: 1380360
TreeView+ depends on / blocked
Reported: 2016-07-22 08:17 UTC by Andrei Stepanov
Modified: 2018-10-16 16:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-10-16 16:14:26 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Andrei Stepanov 2016-07-22 08:17:29 UTC
yumdownloader shows wrong URL for same packages

Version: yum-utils-1.1.31-34.el7.noarch
How reproducible: always.

I need to know URL for RPM package. I use next command:
yumdownloader --urls qemu-kvm-rhev

# yumdownloader --urls qemu-kvm-rhev
Loaded plugins: product-id

I tried to download this URL:

wget ''
--2016-07-22 10:09:33--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-07-22 10:09:34 ERROR 404: Not Found.

Nonetheless, yumdownloader can download package:

# yumdownloader  qemu-kvm-rhev
Loaded plugins: product-id
qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm                       | 2.1 MB  00:00:01

I looked at starce log, and I could clearly see that it downloaded it from different location:

strace -fF -o log -s 1024 yumdownloader qemu-kvm-rhev

In particular, it downloaded package from:

7394  setxattr("./qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm", "user.xdg.origin.url", "", 134, 0) = 0

So, yumdownloader must show this: URL: but it shows fake URL.

Yum config is:

# cat /etc/yum.repos.d/rhev-h.repo 

Note You need to log in before you can comment on or make changes to this bug.