man yum
--releasever
man 5 yum.conf
search the releasever and distroverpkg
cat /etc/yum.conf
distroverpkg=redhat-release
rpm -q --whatprovides redhat-release
$rpm -q --qf "%{version}" -f /etc/redhat-release
7.2$rpm -q --qf "%{arch}" -f /etc/redhat-release
x86_64