On Mon, 01 Nov 2021 21:52:33 -0000
"Philip Kauffman" <philip(a)kauffman.me> wrote:
My goal is to use a python script to get all a systems repositories
in a data structure (list,dict,whatever). I've gotten most of the way
there with the below which is able to get all repositories in
/etc/yum.repos.d/*.repo. However, I can't find any reference to how
to also make python3-dnf get the RHEL repositories as well... even
though it is clearly capable of doing so (see below).
Any pointers would be greatly appreciated.
Your script produces the expected output on my Fedora 34 system,
listing all the active and inactive repos. Of course, it lists no
RHEL repos, since I do not have any. I also get similar resul;ts in a
CentOS 8 container.
I don’t have RHEL, so I cannot help with that part. You might want to
ask RH for RHEL-specific advice.
Jim