Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a dom0 package downgrade/reinstall commands #1417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 4 additions & 33 deletions user/advanced-topics/how-to-install-software-in-dom0.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,44 +65,15 @@ commands to `dnf` using `--action=...`.
**WARNING:** Downgrading a package can expose your system to security
vulnerabilities.

1. Download an older version of the package:
To downgrade a specific package in dom0:

~~~
sudo qubes-dom0-update package-version
~~~

Dnf will say that there is no update, but the package will nonetheless be
downloaded to dom0.

2. Downgrade the package:

~~~
sudo dnf downgrade package-version
~~~
sudo qubes-dom0-update --action=downgrade package-version

## How to re-install a package

You can re-install in a similar fashion to downgrading.

1. Download the package:

~~~
sudo qubes-dom0-update package
~~~

Dnf will say that there is no update, but the package will nonetheless be
downloaded to dom0.

2. Re-install the package:

~~~
sudo dnf reinstall package
~~~
To re-install a package in dom0:

Note that `dnf` will only re-install if the installed and downloaded
versions match. You can ensure they match by either updating the package to
the latest version, or specifying the package version in the first step
using the form `package-version`.
sudo qubes-dom0-update --action=reinstall package

## How to uninstall a package

Expand Down