Skip to content

Instantly share code, notes, and snippets.

@eladc
Last active December 25, 2022 11:48
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 eladc/208756b98228cee7e06f05d19ac882c0 to your computer and use it in GitHub Desktop.
Save eladc/208756b98228cee7e06f05d19ac882c0 to your computer and use it in GitHub Desktop.
Upgrade RHEL6 to RHEL7
yum update
reboot
## Repos configuration
subscription-manager config --rhsm.manage_repos=1
subscription-manager repos --enable rhel-6-server-extras-rpms
echo “notify_only=0” >> /etc/yum/pluginconf.d/search-disabled-repos.conf
## Install upgrade tools
yum install redhat-upgrade-tool preupgrade-assistant preupgrade-assistant-el6toel7 yum-plugin-downloadonly
## Backup GRUB's RPM
yumdownloader grub
## Run Pre-Upgrade utility
preupg -v
## Check for upgrade conflicts
preupg --riskcheck --verbose
## backup Shadow files
cp /etc/shadow /etc/shadow.backup
cp /etc/gshadown /etc/gshadow.backup
## Run the upgrade tool
redhat-upgrade-tool-cli --iso rhel-server-7.6-x86_64-dvd.iso --cleanup-post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment