Upgrading Fedora Installation on DigitalOcean
I found this method works for me,
#Check if user is root
if [[ $EUID -ne 0 ]]; then
echo "Sudo privileges required!"
exit 1;
fi
dnf update
NEXT_VERSION=25
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-${NEXT_VERSION}-$(uname -i)
dnf update dnf
dnf clean all
dnf --releasever=${NEXT_VERSION} distro-sync
# dnf remove firewalld-config-standard
# dnf install system-release-server
sync
You may need to run restorecon -R / to fix any SELinux issues.
Resource
- https://gist.github.com/kallisti5/01f6df3bfb77b978abfe