User Tools

Site Tools


local_red_hat_repository

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

local_red_hat_repository [2011/11/17 07:20]
root
local_red_hat_repository [2011/11/18 13:50] (current)
root
Line 107: Line 107:
   enabled = 0   enabled = 0
  
-===== In case you want to kickstart ​install from mrepo =====+====== Kickstart ​install from mrepo =====
  
 Prepare group file. Prepare group file.
-Copy group file from RHEl5/6 DVD to repodata ​directory. Group file can be found on DVD under Server/​repodata directory.+Copy group file from RHEl5/6 DVD to $srcdir/<​reponame>​_arch ​directory. ​The file should be called <​nameofrepo>​-comps.xml. RPMS.<​nameofrepo>​ should lead you to the right place. Source ​Group file can be found on RHEL DVD under Server/​repodata directory.
  
-RHEL5: +RHEL5 groupfile. Same file with two different names. Hence the RPMS.all and RPMS.updates directory. 
-  ​cd /​var/​www/​html/​yum/​repo/​rhel-5Server-x86_64/​RPMS.all + 
-  ​createrepo ​-s sha -/​var/​www/​html/​yum/​repo/​rhel-5Server-x86_64/​RPMS.all/​repodata/​comps-rhel5-server-core.xml ​.+  /​var/​www/​html/​yum/​mrepo/​rhel-5Server-x86_64/​all-comps.xml 
 +  ​/​var/​www/​html/​yum/​mrepo/​rhel-5Server-x86_64/​updates-comps.xml 
 + 
 +This will generate RHEL5 group metadata (xml) in: 
 + 
 +  ​/​var/​www/​html/​yum/​repo/​rhel-5Server-x86_64/​RPMS.all/​repodata/​ 
 +  /​var/​www/​html/​yum/​repo/​rhel-5Server-x86_64/RPMS.updates/​repodata/​
  
 RHEL6: RHEL6:
-  cd /​var/​www/​html/​yum/​repo/​rhel-6Server-x86_64/​RPMS.all + 
-  ​createrepo ​-s sha -/​var/​www/​html/​yum/​repo/​rhel-6Server-x86_64/​RPMS.all/repodata/comps-rhel6-server-core.xml ​.+RHEL6 groupfile. Same file with two different names. Hence the RPMS.all and RPMS.updates directory. 
 + 
 +  ​/​var/​www/​html/​yum/​mrepo/​rhel-6Server-x86_64/​all-comps.xml 
 +  ​/​var/​www/​html/​yum/​mrepo/​rhel-6Server-x86_64/​updates-comps.xml 
 + 
 +This will generate RHEL6 group metadata (xml) in: 
 + 
 +  ​/​var/​www/​html/​yum/​repo/​rhel-6Server-x86_64/​RPMS.updates/​repodata ​ 
 +  ​/var/​www/​html/​yum/​repo/​rhel-6Server-x86_64/RPMS.all/​repodata
  
 RHEL5 is expecting installation tree to be in a subfolder called Server. RHEL5 is expecting installation tree to be in a subfolder called Server.
Line 131: Line 146:
 RHEL6: RHEL6:
  
-  N/A+  ​Softlink ​N/A 
 +   
 +To use your http repo add following to the beginning of your kickstart file. 
 + 
 + 
 +RHEL5: 
 +  install 
 +  url --url http://<​IP of Web(REPO) server>/​repo/​rhel-5Server-x86_64 
 + 
 + 
 +RHEL6: 
 +  install 
 +  url --url http://<​IP of Web(REPO) server>/​repo/​rhel-6Server-x86_64/​RPMS.all 
  
 References\\ References\\
 http://​igrelease.forge.cnaf.infn.it/​doku.php?​id=doc:​tips:​mrepo\\ http://​igrelease.forge.cnaf.infn.it/​doku.php?​id=doc:​tips:​mrepo\\
 http://​www.labmonkeys.org/​sysadmin/​rpm/​installing_mrepo_on_rhel5\\ http://​www.labmonkeys.org/​sysadmin/​rpm/​installing_mrepo_on_rhel5\\
-http://​www.brandonhutchinson.com/​mrepo_configuration.html+http://​www.brandonhutchinson.com/​mrepo_configuration.html\\ 
 +http://​lists.repoforge.org/​pipermail/​tools/​2008-November/​001368.html
local_red_hat_repository.1321514419.txt.gz · Last modified: 2011/11/17 07:20 by root