On Mon, 01 Nov 2021 21:52:33 -0000
"Philip Kauffman" <phi...@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
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to