This shows you the differences between two versions of the page.
|
local_red_hat_repository [2011/10/13 11:34] root created |
local_red_hat_repository [2011/11/18 13:50] (current) root |
||
|---|---|---|---|
| Line 64: | Line 64: | ||
| chmod 755 -R /var/www/html/yum/mrepo/ | chmod 755 -R /var/www/html/yum/mrepo/ | ||
| chmod 755 -R /var/www/html/yum/repo/ | chmod 755 -R /var/www/html/yum/repo/ | ||
| + | | ||
| + | |||
| + | Run mrepo again to download all rpm files from RHN | ||
| + | mrepo -vvvvug | ||
| Web-server: | Web-server: | ||
| Line 102: | Line 106: | ||
| /etc/yum/pluginconf.d/rhnplugin.conf | /etc/yum/pluginconf.d/rhnplugin.conf | ||
| enabled = 0 | enabled = 0 | ||
| + | |||
| + | ====== Kickstart install from mrepo ====== | ||
| + | |||
| + | |||
| + | Prepare group file. | ||
| + | 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 groupfile. Same file with two different names. Hence the RPMS.all and RPMS.updates directory. | ||
| + | |||
| + | /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 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. | ||
| + | |||
| + | Make softlink to Server directory: | ||
| + | |||
| + | RHEL5: | ||
| + | |||
| + | cd /var/www/html/yum/repo/rhel-5Server-x86_64 | ||
| + | ln -s RPMS.all Server | ||
| + | | ||
| + | RHEL6: | ||
| + | |||
| + | 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 | ||