Want to know the exact value of the variables in repo files?
CentOS8/9 or comparable versions of alma/rocky/etc.
/usr/libexec/platform-python -c '
import dnf, json
db = dnf.dnf.Base()
db.conf.substitutions.update_from_etc("/")
print(json.dumps(db.conf.substitutions, indent=2))'
Comments