Dnf | how to check the version of a excludet package

I excluded Mutter because of an error in the newest version.

/etc/dnf/dnf.conf
exclude=mutter

This not just keeps the older version back, it also prevent it to search, list and check info about it.

sudo dnf info mutter
Last metadata expiration check: 0:28:52 ago on Wed 21 Jun 2023 08:08:36 AM -03.
Error: No matching Packages to list

sudo dnf list mutter
Last metadata expiration check: 0:29:24 ago on Wed 21 Jun 2023 08:08:36 AM -03.
Error: No matching Packages to list

sudo dnf search mutter
Last metadata expiration check: 0:29:55 ago on Wed 21 Jun 2023 08:08:36 AM -03.
====================================================================== Name & Summary Matched: mutter ======================================================================
mutter-devel.i686 : Development package for mutter
mutter-devel.x86_64 : Development package for mutter
mutter-tests.x86_64 : Tests for the mutter package

What is the best way to verify with dnf or rpm to see if the newer version is available?

If not available in the stable branch, how do I test it if it is in testing?

And last, how do I have to add just mutter with dnf from testing, that I can see if it solved the problem?

dnf --disableexcludes=all info mutter
dnf --disableexcludes=all --enablerepo=updates-testing install mutter

Note there doesn’t seem to be any mutter updates in testing currently.

3 Likes

Thanks a lot Justin.

To check testing I have to try to install it or check on the bodhi website if it is one there?

At least with the second command it shows me which version i have installed and it says nothing to do to know there is no testing package there yet.

dnf --disableexcludes=all --enablerepo=updates-testing install mutter
Last metadata expiration check: 0:30:18 ago on Wed 21 Jun 2023 09:23:45 AM -03.
Package mutter-44.0-1.fc38.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I made me a mini-script like checktesting with the code:

sudo dnf --disableexcludes=all --enablerepo=updates-testing install $1

So I can check whatever package I like to verifier without edit the dnf.conf file.

1 Like

It’s probably faster and more accurate to check Bodhi, because your dnf results depend on mirrors which might be slightly behind.

Bodhi may also have more details on the bugs fixed, and useful comments from other testers.

You can check by cli too:

bodhi updates query --packages mutter --releases F38 --status testing --rows 1

(Since there’s currently no results, try --status stable to see an example)

2 Likes

You might try dnf --disableexcludes=all --enablerepo=updates-testing check-update.