I have fedora (32) installed on an RPi. I use this mainly as a dns/dchp/print/etc. server.
When I installed F32, I started w/ the arm-image-installer and a base image. Now I want (need) to upgrade to F34. Is there a way to upgrade without starting from a bare image? Such with the dnf system-upgrade used by other arch’s?
I have installed several additional packages to the original image, as well having several configuration files that would need to be moved over to the upgraded system. I would have to get a list of the additional packages, as well as all of the config files I created/changed. I thought that the dnf system upgrade plugin was supposed to handle that kind of upgrade issues.
Just trying to make life a little bit easier.
dnf system-upgrade should Just Work™. Is there an issue?
This might not be the recomened way, but it worked for me the last few years.
Either use sudo or perform the operations as root.
# import keys
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-34-primary
# dist -upgrade
dnf --releasever=34 --allowerasing --best distro-sync
This used to be the way to go before ‘dnf-plugin-system-upgrade’.
By now the recomended way is
# Set metadata as expired and update to the latest versions.
dnf upgrade --refresh
# install the plugin
dnf install dnf-plugin-system-upgrade
# download the new packages
dnf system-upgrade download --releasever=34 --allowerasing --best
# restart -WITHOUT WARNING- to start the upgrade
dnf system-upgrade reboot
As long as you installed the additional packages either with dnf or rpm, meaning you didn’t compile them yourself, all should work well.