Skip to content

Instantly share code, notes, and snippets.

@major
Last active March 7, 2017 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/945ce9bb6594f5cbd28646b7e5d94057 to your computer and use it in GitHub Desktop.
Save major/945ce9bb6594f5cbd28646b7e5d94057 to your computer and use it in GitHub Desktop.
yum repo priorities
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
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