#/bin/bash echo "Step one: update everything" echo "===========================" echo "" read -n1 -s -r -p $'run now: $sudo dnf upgrade --refresh (Enter = run)' key if [ "$key" = "" ]; then sudo dnf upgrade --refresh read -n1 -s -r -p $'and reboot your computer now! (Enter = reboot)' key if [ "$key" = "" ]; then reboot fi fi echo "" echo "" echo "Step two: install dnf-plugin-system-upgrade" echo "===========================================" echo "" read -n1 -s -r -p $'run now: $sudo dnf install dnf-plugin-system-upgrade (Enter = run)' key if [ "$key" = "" ]; then sudo dnf install dnf-plugin-system-upgrade fi ## get actual version in variable $VERSION_ID source /etc/os-release let NEXT_VERSION=$VERSION_ID+1 echo "" echo "" echo "Step three: system-upgrade download Version $NEXT_VERSION" echo "===================================================" echo "" read -n1 -s -r -p $"run now: sudo dnf system-upgrade download --releasever=$NEXT_VERSION (Enter = run)" key if [ "$key" = "" ]; then sudo dnf system-upgrade download --releasever=$NEXT_VERSION fi echo "" echo "" echo "Step four: start the upgrade" echo "============================" echo "" read -n1 -s -r -p $'run now: dnf system-upgrade reboot (Enter = run)' key if [ "$key" = "" ]; then sudo dnf system-upgrade reboot fi echo "" echo "" echo "Step five: clean the upgrade" echo "============================" echo "" read -n1 -s -r -p $'run now: dnf system-upgrade clean (Enter = run)' key if [ "$key" = "" ]; then sudo dnf system-upgrade clean && dnf clean packages fi