I used this http://ramblings.narrabilis.com/wp/creating-a-yum-repository-repo-and-creating-a-yum-group-to-install-kickstart as an example.
# mkdir -p /var/www/html/psydexrepo
# mkdir -p /var/www/html/psydexrepo/os/x86_64
Create groups file (comps.xml)
# vi /var/www/html/psydexrepo/comps.xml
Add the following to the comps.xml file:
<code>
<!-- <meta> -->
<!-- Meta information will go here eventually -->
<!-- </meta> -->
<group>
<id>PsydexSoftware</id>
<name>pxSoftware</name>
<default>true</default>
<description>Default RPMS from Psydex Repo</description>
<uservisible>true</uservisible>
<packagelist>
<packagereq type="default">pxNodeManager-1.0-1</packagereq>
<!--
<packagereq type="optional">pxNodeManager-1.0-1</packagereq>
-->
</packagelist>
</group>
</comps>
</code>
# cd /var/www/html
# createrepo -g comps.xml psydexrepo
Now, if we want to install this group on a machine, we create a .repo file in /etc/yum.repos.d like this:
[PsydexRepo]
name=Psydex Repository
baseurl=http://localhost/psydexrepo
gpgcheck=0
# yum groupinstall pxSoftware
No comments:
Post a Comment