Last active
May 11, 2024 20:41
-
-
Save mdenzel/6c63e5ac2dc45e47700c5e0bf28ca828 to your computer and use it in GitHub Desktop.
Linux: upgrade Fedora to next version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION=$(( `cat /etc/os-release | grep VERSION_ID | cut -d '=' -f2` + 1 )) | |
echo "Getting Fedora $VERSION" | |
sudo dnf --refresh upgrade || exit 13 | |
sudo dnf install dnf-plugin-system-upgrade || exit 13 | |
sudo dnf system-upgrade download --refresh --releasever=$VERSION || exit 13 | |
sudo dnf system-upgrade reboot || exit 13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment