07dc3d9948
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> |
||
---|---|---|
.. | ||
README.md |
Updating to the next version
Top
Questions to David Rotermund
Before starting, you need to install the dnf-plugin-system-upgrade package.
dnf install dnf-plugin-system-upgrade
After that, this is normally enough (example for 37 -> 38):
dnf -y system-upgrade download --refresh --releasever=38 --allowerasing --best --skip-broken 2> error.log ; dnf system-upgrade reboot
cat error.log | grep -v "^No match for group package" | grep -v "^Error:"
However, you might encouter problems like:
Remove obsolete packages
We can analyse the error.log file:
echo "Check if these packages can be deleted:"
cat error.log | grep -v "^No match for group package" | grep -v "^Error:" | grep "does not belong to a distupgrade repository"
Check if these packages can be deleted:
- jack-audio-connection-kit-example-clients-1.9.21-3.fc37.x86_64 from @System does not belong to a distupgrade repository
Now we can try to remove the obsolte package carefully(!!!):
yum remove --noautoremove jack-audio-connection-kit-example-clients
After that we can try to run the upgrade again:
dnf -y system-upgrade download --refresh --releasever=38 --allowerasing --best --skip-broken 2> error.log ; dnf system-upgrade reboot
cat error.log | grep -v "^No match for group package" | grep -v "^Error:"
Remove packages from an OS version before the current one
We are at version 37, want to get to version 38 but get complains about pacakges from version 36:
cat error.log | grep -v "^No match for group package" | grep -v "^Error:"
Problem: package kernel-modules-extra-5.19.16-200.fc36.x86_64 from @System requires kernel-uname-r = 5.19.16-200.fc36.x86_64, but none of the providers can be installed
- conflicting requests
Now we can try to remove the obsolte package carefully(!!!). However, use the full(!!!) package name. Means with package and os version:
dnf remove --noautoremove kernel-modules-extra-5.19.16-200.fc36.x86_64
After that we can try to run the upgrade again:
dnf -y system-upgrade download --refresh --releasever=38 --allowerasing --best --skip-broken 2> error.log ; dnf system-upgrade reboot
cat error.log | grep -v "^No match for group package" | grep -v "^Error:"