May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Howto Setup yum repositories to install from ISO

Mount the iso to /mnt
In the case of redhat, copy the media.repo file from the root dir of the mount point to /etc/yum.repos.d. Edit the file and add the baseurl at the end as depicted below.

[root@mkoffer2 ~]# cat /etc/yum.repos.d/media.repo
[InstallMedia]
name=Red Hat Enterprise Linux 6.3
mediaid=1339640147.274118
metadata_expire=-1
gpgcheck=0
cost=500
baseurl=file:///mnt

* mediaid comes from the .diskinfo file located in the root of the DVD

This will allow installation of base packages. If you need non-base packages, you’ll need to include the correct stanza in the media.repo config file.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>