Created
July 26, 2014 22:44
-
-
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
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 | |
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