[elad@rincewind dnf]$ dnf grouplist --cacheonly
[Errno 13] Permission denied: '/var/cache/dnf/x86_64/20/fedora/repodata/gen'
I think it needs a root user access.
That's silly. It's a read only command and I explicitly specified --cacheonly, which means "Don't download metadata, use existing cache".
yes, it's what it does: it's trying to use the root cache, see the manual. the root cache is created with permissions given by root's umask. if you change the permissions on the root cahe to be readable by the user (safe) all should be fine.
Why is this the default?
Hmm, actually I think you might be right, this should be world-readable, at least until somebody starts to complain. We'll take a look at this.
System cache was readable by user. The problem was during decompression of xmls into root directory. Fixed in the upstream.
dnf-0.4.17-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.17-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf grouplist --cacheonly
Error: This command has to be run under the root user.
dnf grouplist --cacheonly --noplugins
the initial problem is solved, but looks like the noroot plugin
has an issue in this case.
dnf-0.4.17-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.