0% found this document useful (0 votes)
528 views9 pages

Upgrade RHEL 7.2 To 7.6

The document provides steps to upgrade a Red Hat Enterprise Linux 7.2 server to version 7.6. It involves mounting the RHEL 7.6 ISO, configuring the repository, checking the current OS version, running yum update, resolving a hanging issue during the upgrade, rebooting the system and addressing an SELinux error, and finally verifying the new OS version.

Uploaded by

Abdallah Attia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
528 views9 pages

Upgrade RHEL 7.2 To 7.6

The document provides steps to upgrade a Red Hat Enterprise Linux 7.2 server to version 7.6. It involves mounting the RHEL 7.6 ISO, configuring the repository, checking the current OS version, running yum update, resolving a hanging issue during the upgrade, rebooting the system and addressing an SELinux error, and finally verifying the new OS version.

Uploaded by

Abdallah Attia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

1- Mount RHEL 7.

6 ISO image on linux server

mount -t iso9660 -o loop /u01/db_source_12.1/rhel-server-7.6-x86_64-


dvd.iso /mnt

2- Configure the repo . Navigate to /etc/yum.repos.d and create file called “rhel7_6.repo”

3- Note down current OS version details


[root@rhel7 yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[root@rhel7 yum.repos.d]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"


REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
[root@rhel7 yum.repos.d]# uname -a
Linux rhel7.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64
GNU/Linux

4- Proceed with OS upgrade using “yum update”


yum clean all

yum repolist enabled

yum update -y
Upgrade hangs at this step

Resolution: use workaround from this link:

https://access.redhat.com/solutions/1387833

[root@rhel7 yum.repos.d]# ps -ef |grep systemctl


root 48167 80709 0 00:15 pts/3 00:00:00 grep --color=auto systemctl
root 118674 118648 0 Mar04 pts/2 00:00:00 systemctl try-restart initial-setup-text.service
[root@rhel7 yum.repos.d]#
[root@rhel7 yum.repos.d]# kill -9 118674
[root@rhel7 yum.repos.d]#

Then upgrade continues

5- Reboot the system


Issue after restart with SELinux

Solution:
- Restart VM
- During restart use arrow keys to pause auto startup
- Press “e” to edit loader

- Go down with arrow till the following line and add “selinux=0” clause
- Press “ctrl+x” keys
6- Note down new OS version details
[root@rhel7 yum.repos.d]# cat /etc/redhat-release

[root@rhel7 yum.repos.d]# cat /etc/os-release

[root@rhel7 ~]# cat /etc/os-release

NAME="Red Hat Enterprise Linux Server"

VERSION="7.6 (Maipo)"

ID="rhel"

ID_LIKE="fedora"

VARIANT="Server"

VARIANT_ID="server"

VERSION_ID="7.6"

PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"

ANSI_COLOR="0;31"

CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"

HOME_URL="https://www.redhat.com/"

BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"

REDHAT_BUGZILLA_PRODUCT_VERSION=7.6

REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"

REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy