Skip to content

Instantly share code, notes, and snippets.

@maxamillion
Created April 4, 2019 21:32
Show Gist options
  • Save maxamillion/22b8ddb11d8cce5932f7b73cb6aff314 to your computer and use it in GitHub Desktop.
Save maxamillion/22b8ddb11d8cce5932f7b73cb6aff314 to your computer and use it in GitHub Desktop.
Prep DNF Transaction (order matters)
#!/usr/bin/python3
import dnf
base = dnf.Base()
base.conf.read()
base.read_all_repos()
#base.init_plugins()
#base.pre_configure_plugins()
#base.configure_plugins()
base.fill_sack()
base.read_comps()
# module_base = dnf.module.module_base.ModuleBase(base)
# x = module_base.install(['postgresql:9.6/client'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment