Hide Forgot
Description of problem: Running 'dnf -C download' as a non-privileged user doesn't work. The command first downloads the package into the cache which is read-only for a regular user. Then the file is copied from the cache to the desired location. Downloading the package into the cache makes a little sense, because the package is downloaded no matter if the file is already in the cache. Version-Release number of selected component (if applicable): dnf-plugins-core-0.1.15-1.fc23.noarch How reproducible: always Steps to Reproduce: 1. $ sudo dnf clean all 2. $ sudo dnf makecache 3. $ dnf -C download --destdir /tmp bash Actual results: Last metadata expiration check performed 1:49:19 ago on Wed Dec 30 12:57:05 2015. [Errno unknown] Cannot open /var/cache/dnf/fedora-fe3d2f0c91e9b65c/packages/bash-4.3.42-1.fc23.x86_64.rpm: Permission denied: 'Input/Output error Expected results: bash package is downloaded into /tmp Additional info:
It try to use cache from root (/var/cache/dnf/) instead of user's cache (/var/tmp/dnf-USER-hash/). We will try to fix it.
Small correction, I think it try to write down the downloaded rpm but into root's directory /var/cache/dnf/fedora-fe3d2f0c91e9b65c/packages/ where non-privilege user doesn't have access. The problem only appear when --destdir option is used. The cache is used correctly.
Another correction: The problem only appear when -C option is used and it is not connected with --destdir option.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The presented problem cannot be reproduce with dnf-2.0. Steps that do not reproduce: 1. $ sudo dnf clean all 2. $ dnf clean all 3. $ dnf makecache 4. $ dnf -C download --destdir /tmp bash