How to update Red Hat Server from DVD ISO?

In this case, we have given the steps to update your RHEL machines.

See below,

# Update RHEL from DVD ISO

#### RUN DATA CAPTURE FIRST ####   Such as server mount points, netstat, iptables information and etc…

# Download latest RHEL .iso

 Make the .iso available to the system

NOTE: Copy it local, or make it available via NFS

# Mount the .iso

$ mkdir /mnt/cdrom

$ mount -o loop /export/source/jms/rhel-server-5.7-x86_64-dvd.iso /mnt/cdrom

# Setup Custom Repo

$ vi /etc/yum.repos.d/dvd.repo

Add the following to “/etc/yum.repos.d/dvd.repo”

[dvd]
mediaid=1310406058.878005
name=DVD for RHEL5.7
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=0

NOTE:

The “mediaid” value will be custom to each DVD. To get this, do the following:

$ cat /mnt/cdrom/.discinfo

# Update Package Info

$ yum update all –noplugin

# Upgrade packages

$ yum upgrade –noplugin

# Reboot server

$ reboot

 

 

Related posts

Leave a Comment