Module qubes_dom0_update#38
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #38 +/- ##
=======================================
Coverage 83.72% 83.72%
=======================================
Files 1 1
Lines 215 215
=======================================
Hits 180 180
Misses 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
marmarek
requested changes
May 15, 2026
Member
|
Black complains... |
Member
|
Except black, this looks okay |
This new module allows to manage packages on dom0 using qubes-dom0-update and dnf.
Member
Author
|
Thanks, should be better now |
marmarek
approved these changes
May 20, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
qubesos.core.qubes_dom0_update
This PR adds a new module
qubesos.core.qubes_dom0_updateto manage packages on dom0.New features
Ability to install packages on dom0 with the same syntax as common packages managers modules
The generic
packagemodule can be used, but the module name must be specified in theuseparameter asqubes-dom0-updateis not resolved as the package manager by the system facts (maybe we could try to ask to upstream) ?The module can be used to switch audio daemon:
How it works
state
presentFor
state=present, the module will check in dom0 rpm db if the specified packages are already installed. If so, the module exits without any change. If the specified packages don't exist, it will callqubes-dom0-updateto install them. Then, it will look into the local RPM DB a second time to check the version installed and to provide the appropriate output (for exampleInstalled: vim-enhanced-9.1.1914-1.fc41.x86_64)### state
absentFor this state, the module performs exactly the same actions as the
dnf5module: it will uselibdnfto check if the packages are installed and remove them.state
latestTo ensure the system (or the specified packages) are up to date, the module will call
qubes-dom0-updatewithout any previous analysis. Then it will rely on command output to now if changes happens. If so, it will look into the last RPM transaction to provide the list of upgraded packages.param
switch_audio_daemonFor
pipewire, it will check ifpipewireandpipewire-pulseaudioare installed. If so, the module exit withchanged=false. If not, it will callqubes-dom0-update --switch-audio-daemon pipewireFor
pulseaudio, it will check ifpulseaudiois installed. If so, the module exit withchanged=false. If not, it will callqubes-dom0-update --switch-audio-daemon pipewireCloses QubesOS/qubes-issues#10266