How to find what value the variables have in .repo files on centos/alma/etc

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

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 2 =