Re: Using python to get a list of repositories, including RHEL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Nov 2021 21:52:33 -0000
"Philip Kauffman" <philip@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux