[Solved] Unable to dnf downgrade or dnf undo

Yesterday, I made a complete backup.

Today I upgraded the packages. Among others, pipewire was upgraded from 1.6.9 to 1.6.10. Even after rebooting, not a sound was made out of Kodi and pavucontrol showed multiple alsa-loop playback devices, around 10 instead of the normal: 1.

No matter what I tried, I was unable to either downgrade pipewire to 1.6.9 even though I added --enablerepo=updates-testing as in sudo dnf downgrade pipewire --enablerepo=updates-testing. I was unable to undo as well as in sudo dnf history undo 640 and --enablerepo=updates-testing didn’t help.

In last resort, I restored backup and froze pipewire to v 1.6.9 the time to figure out whether it’s a dud or the configuration has changed so much to break several things.

You’d need to install the fedora-repos-archive and then downgrade.
Updates/update-testing are only going to have the latest versions.
The fedora repo is going to have the initial version from the release.

My bad, I had it installed, but out of extreme nervosity about that situation, I enabled updates-testing instead of updates-archives.

Thanks for pointing that out!

-rw-r--r--   1 root root  986 23 aoû 20:00 fedora-updates-archive.repo
-rw-r--r--   1 root root 1,3K 23 aoû 20:00 fedora-updates.repo
-rw-r--r--   1 root root 1,4K 23 aoû 20:00 fedora-updates-testing.repo

to perform a downgrade you must either accept the version that is in the fedora repo or use the updates-archive repo.

updates-testing will only contain newer packages while they are being tested.
fedora contains only the packages at the time that release version was made publicly available
updates contains only the most recent released package version
updates-archive contains each package version that has ever been released for updates and provides access to all the older released updated versions (that are newer than what was originally in the fedora repo.)

I suspect you meant to use --enablerepo=updates-archive, and even then you probably would need to add the full package name so the system could identify the specific version you wished to use (possibly essential if there are multiple versions of the same package in the archive).

My experience has been that if you leave the --enablerepo argument off altogether, dnf downgrade will get the latest available version of the package your specify.

If you have the fedora-repos-archive installed this is the (n-1)st version; if not, it’ll go all the way back to the initial release version.

But I’ve only used this a few times in the past several years, so my memory might be defective.

  • Solved for downgrade
  • No idea why it didn’t work for undo
  • Keeping the thread active. There is obviously a problem, a regression I’d say, with pipewire interaction with alsa-loop

Not reporting as bug because I have a complex camilladsp installation that no dev would be willing to duplicate.

Breaking kodi up to the point there is no sound and all video is halted has to be very serious as an issue. All went back working perfectly again as soon as 1.6.9 was back.

In the meantime, marked pipewire*1.6.10-1* as excluded.

It woudn’t work for undo because the previously installed version is no longer in the updates or updates-testing repository. This also requires the archive repo.

Even when I still have it locally?

Assuming this is the local cache and not a separate local repository.
Since it’s no longer in the repository metadata you’d have to manually install it by pointing to the file.

Just out of curiosity, could anything be tweaked through dnf.conf to make it possible for the dnf history undo (or rollback) to work as he wanted it to next time?

This config for dnf.conf will skip this version only

excludepkgs= pipewire*1.6.10-1*

man dnf.conf shows all the options available in that file.
I see nothing that would work with downgrading, and his errors were due to using the wrong repo, not otherwise in the commands used.

Fixed rapidly with pipewire 1.6.11 now released.