{"id":4140,"date":"2015-01-27T19:08:14","date_gmt":"2015-01-27T11:08:14","guid":{"rendered":"http:\/\/rmohan.com\/?p=4140"},"modified":"2015-01-27T19:08:14","modified_gmt":"2015-01-27T11:08:14","slug":"howto-setup-yum-repositories-to-install-from-iso","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4140","title":{"rendered":"Howto Setup yum repositories to install from ISO"},"content":{"rendered":"<p>Mount the iso to \/mnt<br \/>\nIn 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.<\/p>\n<p>[root@mkoffer2 ~]# cat \/etc\/yum.repos.d\/media.repo<br \/>\n[InstallMedia]<br \/>\nname=Red Hat Enterprise Linux 6.3<br \/>\nmediaid=1339640147.274118<br \/>\nmetadata_expire=-1<br \/>\ngpgcheck=0<br \/>\ncost=500<br \/>\nbaseurl=file:\/\/\/mnt<\/p>\n<p>* mediaid comes from the .diskinfo file located in the root of the DVD<\/p>\n<p>This will allow installation of base packages.  If you need non-base packages, you&#8217;ll need to include the correct stanza in the media.repo config file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n<p>[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<\/p>\n<p>* mediaid comes [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4140"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4140"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4140\/revisions"}],"predecessor-version":[{"id":4141,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4140\/revisions\/4141"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}