Last active
March 7, 2017 14:02
-
-
Save major/945ce9bb6594f5cbd28646b7e5d94057 to your computer and use it in GitHub Desktop.
yum repo priorities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: import yum | |
In [2]: yb = yum.YumBase() | |
In [3]: for repo in yb.repos.listEnabled(): | |
...: print(repo.name) | |
...: print(repo.priority) | |
...: | |
Loaded plugins: dellsysid, fastestmirror, priorities | |
CentOS-7 - Base | |
50 | |
Dell OMSA repository - Hardware independent | |
99 | |
Dell OMSA repository - Hardware specific | |
99 | |
Extra Packages for Enterprise Linux 7 - x86_64 | |
99 | |
CentOS-7 - Extras | |
99 | |
OpenStack Ocata Repository | |
99 | |
RDO CentOS-7 - QEMU EV | |
99 | |
CentOS-7 - Updates | |
99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [5]: for repo in yb.repos.listEnabled(): | |
...: print(repo.name) | |
...: | |
CentOS-7 - Base | |
Dell OMSA repository - Hardware independent | |
Dell OMSA repository - Hardware specific | |
Extra Packages for Enterprise Linux 7 - x86_64 | |
CentOS-7 - Extras | |
OpenStack Ocata Repository | |
RDO CentOS-7 - QEMU EV | |
CentOS-7 - Updates | |
In [6]: for repo in yb.repos.listEnabled(): | |
...: print(repo.name) | |
...: print(repo.priority) | |
...: | |
CentOS-7 - Base | |
99 | |
Dell OMSA repository - Hardware independent | |
99 | |
Dell OMSA repository - Hardware specific | |
99 | |
Extra Packages for Enterprise Linux 7 - x86_64 | |
99 | |
CentOS-7 - Extras | |
99 | |
OpenStack Ocata Repository | |
99 | |
RDO CentOS-7 - QEMU EV | |
99 | |
CentOS-7 - Updates | |
99 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment