Skip to content

Instantly share code, notes, and snippets.

@NathanHowell
Created July 26, 2014 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NathanHowell/3c8b09f4e7f25c68cd4d to your computer and use it in GitHub Desktop.
Save NathanHowell/3c8b09f4e7f25c68cd4d to your computer and use it in GitHub Desktop.
Upgrade CentOS 6.5 to 7.0.1406 using the prerelease upgrade tools
#!/bin/bash
set -e
cat > /etc/yum.repos.d/upgrade.repo <<END
[upgrade]
name=upgrade
baseurl=http://dev.centos.org/centos/6/upg/x86_64/
enabled=1
gpgcheck=0
END
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
yum install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
preupg
redhat-upgrade-tool --network 7.0 --instrepo http://mirror.centos.org/centos/7.0.1406/os/x86_64/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment