Upgrade DO Fedora 20 to Fedora 21
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 | |
# Digital Ocean Fedora 20 -> 21 upgrade script | |
# 2014, Alexander von Gluck IV | |
# Author not responsible for data loss. Ensure you have valid | |
# backups before using this script! | |
yum update | |
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-21-$(uname -i) | |
yum update yum | |
yum clean all | |
yum --releasever=21 distro-sync | |
yum remove firewalld-config-standard | |
yum install system-release-server | |
sync | |
echo "Now, change the kernel to 'vmlinuz-3.17.7-200.fc20.x86_64' and power the droplet back on" | |
shutdown -h now |
folks who have enabled selinux (or might want to in the future) should also run
restorecon -R /
thanks
P.S use this script in a screen!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow me to make a few modifications