Created
July 30, 2018 15:48
-
-
Save M4rtinK/80c531547f2f881bebb53a67dd720116 to your computer and use it in GitHub Desktop.
Pre install_specs() group & package exclude workflow in Anaconda
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
Pre install_specs() group & package exclude workflow in Anaconda | |
================================================================ | |
1) get a list of excluded groups from kickstart | |
2) when selecting an environment: | |
2.1) resolve it to a list of groups | |
2.2) remove excluded groups from the lists | |
2.3) tell dnf to add the remaining groups to the transaction | |
3) get a list of groups that should be installed from kickstart and/or UI | |
3.1) remove any groups that are in the list of excluded groups | |
4) get a list of excluded packages | |
4.1) tell DNF to exclude the packages | |
(self._base.sack.add_excludes(pkgs)) | |
5) get a list of packages to install from kickstart, requirements (virt, realm join, etc.) & kernel | |
5.1) tell DNF to install those packages | |
6) start the transaction | |
NOTES: | |
- looks like pre-install_specs() DNF could exclude packages but nothing else | |
- we first tell DNF to exclude paclkages and then what to install and DNF | |
supposedly skips any packages we marked as excluded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment