Description of problem:
Currently there is no proper way for the user or a script to read out the content of the $basearch variable used by dnf, e.g. in the repo defintion files in /etc/yum.repos.d/
Using "uname -m" doesn't work, it returns e.g. "armv7l" while the proper $basearch is "armhfp".
This was already a problem with yum:
But the solutions provided there don't work with dnf anymore and do not look like stable interfaces to me.
I think "dnf config-manager --dump" should also output basearch.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. dnf config-manager --dump | grep basearch
basearch = armhfp
Created new option for this:
dnf config-manager --dump-variables
you can combine it with --dump if want both variables and configuration options.
wow, that was fast. Thank you.
Merged as part of DNF 2.0 release.