update Redhat with iso image

September 3, 2016

Just a short manual when you want to udpate for example RedHat 6.4 to
Redhat 6.8:

Update redhat 6 with iso image

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-yum-upgrade-system.html

mount iso on redhat 6 under virtualbox

 mount /dev/sr0 /media

 [root@svbtest media]# cat .discinfo
 1460645249.825876
 Red Hat Enterprise Linux 6.8
 x86_64
 1

 root@svbtest yum.repos.d]# cat 68.repo
 [rhel68-Server]
 mediaid=1460645249.825876
 name=RHEL68-Server
 baseurl=file:///media/
 gpgkey=file:///media/RPM-GPG-KEY-redhat-release
> enabled=1
> gpgcheck=1
>

[root@svbtest yum.repos.d]# yum repolist
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel68-Server                                                                                                          | 4.1 kB     00:00 …
rhel68-Server/primary_db                                                                                  | 3.1 MB     00:00 …
repo id                                                                repo name                                                              status
rhel68-Server                                                   RHEL68-Server                                                    3,855
repolist: 3,855

Now you can issue :

yum update

And after that you can reboot and the system will be on version 6.8.

 

Comments are closed.

Previous Post
«
Next Post
»