How to ignore specific package with system-upgrade?

I’d like to run the Fedora 41 beta. I use wine from patrickl’s copr, which does not yet have a Fedora 41 build, which is blocking the upgrade.

I’m just running the usual

sudo dnf system-upgrade download --releasever=41

--skip-broken does not work, nor does adding exclude=wine in /etc/dnf/dnf.conf.

I believe in the past I upgraded to Fedora 40 while keeping the Fedora 39 wine package. Is there any way to do this?

The exclude syntax for dnf.conf is a wildcard literal. The package that you are looking to exclude is named wine-tkg, which is different from wine. You could try adding this instead:

# /etc/dnf/dnf.conf

[main]
excludepkgs=wine-tkg

Added dnf

Just uninstall the package and install it again when it becomes available n

It’s possible that until it built against f41 it will not run for lack of dependencies.

Doh, that’s very obvious in hindsight. With pkgexclude wine* it works fine, thanks!

1 Like