Hide Forgot
Description of problem: On RHEL 7, yum replaces $releasever in baseurl= with major version, e.g. 7. OTOH, dnf replaces releasever with major.minor Version-Release number of selected component (if applicable): dnf-0.6.4-2.el7.noarch How reproducible: always Steps to Reproduce: 1. have some repo with $releasever in baseurl/mirrorlist 2. yum makecache 3. dnf makecache Actual results: either yum or dnf fails Expected results: yum and dnf work consistently Additional info:
In-system release info # rpm -q --provides redhat-release package redhat-release is not installed # ls -l /usr/lib*/*-release ls: cannot access /usr/lib*/*-release: No such file or directory # ls -l /etc/*-release -rw-r--r--. 1 root root 522 Aug 9 16:12 /etc/os-release -rw-r--r--. 1 root root 62 Aug 9 16:12 /etc/redhat-release lrwxrwxrwx. 1 root root 14 Aug 16 14:18 /etc/system-release -> redhat-release # cat /etc/os-release NAME="Red Hat Enterprise Linux Workstation" VERSION="7.3 (Maipo)" ID="rhel" ID_LIKE="fedora" VERSION_ID="7.3" PRETTY_NAME="Red Hat Enterprise Linux Workstation 7.3 Beta (Maipo)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.3:beta:workstation" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.3 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.3 Beta" # cat /etc/redhat-release Red Hat Enterprise Linux Workstation release 7.3 Beta (Maipo) [root@cihla ~]# ls /etc/*-release
Fixed in https://github.com/rpm-software-management/dnf/pull/606
*** Bug 1346063 has been marked as a duplicate of this bug. ***