Skip to content

Instantly share code, notes, and snippets.

@achristodoulou
Last active August 29, 2015 14:22
Show Gist options
  • Save achristodoulou/c4b1360e47ef499c0307 to your computer and use it in GitHub Desktop.
Save achristodoulou/c4b1360e47ef499c0307 to your computer and use it in GitHub Desktop.
Upgrade Fedora 21 to 22
#Update any packages
$ yum update
#Upgrade to Fedora 22
$ clear && \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-22-$(uname -i) && \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-22 && \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-22 && \
yum -y update yum* && \
yum clean all && \
yum -y --releasever=22 distro-sync
#Resolve rpm differences, during upgrade if any configuration files could not be replaced with new ones will be mark as rpmnew and old #deleted packages configurations will be as rpmsave. Just copy/paste you conf changes to the rpmnew and then replace it.
$ find / -type f -name "*.rpmsave" -o -name "*.rpmnew"
$ reboot
#yum is now "dnf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment