Documentation: Error in "How to install software in dom0"

Inistructions in How to re-install a package seem to be erroneous.

Can anyone try it to make sure that this is not a problem with my setup?

If you follow instructions:
sudo qubes-dom0-update <package> results in:

Dependencies resolved.
Nothing to do.
Complete!
No packages downloaded

and sudo dnf reinstall <package> throws an error:

Installed package <package> (from <source>) not available.
Error: No packages marked for reinstall.

<package> is the name of the package you want to install

1 Like

Reinstall of any package fails. This includes both packages from qubes repos and fedora repos.

Sorry, I should’ve been clearer that <package> is just a placeholder :sweat_smile:

You can try to download package like this:
sudo qubes-dom0-update --action=download <package>

No such command: download. Please use /usr/bin/dnf-3.anondist-orig --help
It could be a DNF plugin command, but loading of plugins is currently disabled.

/usr/bin/dnf-3.anondist-orig --help results in No such file or directory

I have just dnf-3 though

--action=downloadonly doesn’t work either.

I can run sudo qubes-dom0-update --downloadonly directly, although it isn’t documented.

It results in the same error when trying to run sudo dnf reinstall.

Does it work on your machine?

I tried on my Qubes OS and I can reinstall the package like this:

sudo qubes-dom0-update --action=reinstall <package>

To only download the package use this command:

sudo qubes-dom0-update --downloadonly --action=reinstall <package>
1 Like

I’ve created a PR to fix the docs:

1 Like