Downgrade package from rpmfusion fc33 -> fc32

Hello, I’d like to downgrade the kodi (meta) package found in rpmfusion.fc33 (which unfortunately is 19 Alpha… whysoever) to the one found in rpmfusion.fc32. What would be the best way to do that with DNF? I guess it revolves around dnf downgrade ... but I haven’t found a way to enable the rpmfusion.fc32 repo so that DNF finds that package.

1 Like

Enabling the previous repo version is possible:

REPO_VER="$(($(rpm -E %{fedora})-1))"
sudo rm -f /etc/yum.repos.d/rpmfusion-*-${REPO_VER}.repo
ls /etc/yum.repos.d/rpmfusion-*.repo \
| while read REPO_FILE; do sudo cp -f "${REPO_FILE}" \
"${REPO_FILE%.*}-${REPO_VER}.${REPO_FILE##*.}"; done
sudo sed -i -e "s/\$releasever/${REPO_VER}/g;s/\]$/-${REPO_VER}]/" \
/etc/yum.repos.d/rpmfusion-*-${REPO_VER}.repo
sudo dnf config-manager --save \
--setopt=rpmfusion-*-${REPO_VER}.priority=200

But installing the package seems problematic:

> sudo dnf install kodi-18.6-1.fc32
Last metadata expiration check: 0:04:05 ago on Fri 13 Nov 2020 11:43:19 PM MSK.
Error: 
 Problem: problem with installed package libwayland-server-1.18.0-2.fc33.x86_64
  - package kodi-18.6-1.fc32.x86_64 requires (kodi-wayland = 18.6-1.fc32 if libwayland-server), but none of the providers can be installed
  - conflicting requests
  - nothing provides libcdio.so.18()(64bit) needed by kodi-wayland-18.6-1.fc32.x86_64
  - nothing provides libcdio.so.18(CDIO_18)(64bit) needed by kodi-wayland-18.6-1.fc32.x86_64
  - nothing provides libcec.so.4()(64bit) needed by kodi-wayland-18.6-1.fc32.x86_64
  - nothing provides libfmt.so.6()(64bit) needed by kodi-wayland-18.6-1.fc32.x86_64

If you really need the previous package version, either use virtualization or flatpak:

1 Like

Since my sed knowledge is nonexistent I guess what your bash foo does is generating new repo files for rpmfusion.fc(n-1) and placing it beneath the existing ones with lowered priority, am I right? I’ll try that, thank you. Maybe another kodi version or forcing works.


There’s someting wring with your script, it adds hyphens to the filenames just like that: *-.repo

1 Like

I tested it in a VM and it works for me, so you probably missed the first line.
But it looks like DNF cannot satisfy dependencies unless you downgrade the whole system.

1 Like

Yeah, I stopped trying and will downgrade that machine to fc32. Thank you anyway.

1 Like