<br><div class="gmail_quote">On Sat, Jun 14, 2008 at 5:48 AM, Anders F Björklund <<a href="mailto:afb@algonet.se">afb@algonet.se</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Ideas?<br>
</blockquote>
<br>
Can't you add a special "Yum Groups" group, and then add comps.xml to that ?<br>
Then you can install/remove the groups just like you do with regular packages<br>
<br>
However, it seems like "--group" might be missing from `smart query` options<br>
so that might be needed in order to do the "grouplist" equivalent for smart.<br>
</blockquote>
<br></div>
I made the necessary patches/additions to smart, so that it will read the<br>
"group" entry from the repomd.xml and create virtual packages accordingly.<br>
<br>
<br>
The Yum group format has four kinds of dependencies: mandatory, default,<br>
optional and conditional - only the first two are added to smart Requires.<br>
Dependencies can be both for other groups from comps and for real packages,<br>
both are handled (the groups are all prefixed, to separate from packages)<br>
<br>
Some dependencies only exist for certain architectures, and not for others.<br>
So these will break installation for Smart, and are filtered out explicitly*.<br>
(not sure if this deficiency is part of the "comps" format by itself, or just<br>
in the application thereof as part of the CentOS repository that I tried with)<br>
<br>
* things like: mcelog, prctl, ppc64-utils, s390utils, and so on and so forth<br>
<br>
It downloaded the files:<br>
<br>
<a href="http://mirror.centos.org/centos/4/os/i386/repodata/yumgroups.xml" target="_blank">http://mirror.centos.org/centos/4/os/i386/repodata/yumgroups.xml</a><br>
<a href="http://mirror.centos.org/centos/4/extras/i386/repodata/yumgroups.xml" target="_blank">http://mirror.centos.org/centos/4/extras/i386/repodata/yumgroups.xml</a><br>
<br>
</blockquote></div><br>So I need to make a comps.xml groupsfile like this .<br><br><div style="margin-left: 40px;"><code><comps></code><br><code>
<!--  <meta> --></code><br><code>
<!-- Meta information will go here eventually --></code><br><code>
<!--  </meta> --></code><br><code>
  <group></code><br><code>
    <id>mygroup</id></code><br><code>
    <name>MyGroup</name></code><br><code>
    <default>true</default></code><br><code>
    <description>Default RPMS from MyRepo</description></code><br><code>
    <uservisible>true</uservisible></code><br><code>
    <packagelist></code><br><code>
      <packagereq type="default">myrpm</packagereq></code><br><code>
      <packagereq type="optional">mybinrpm</packagereq></code><br><code>
    </packagelist></code><br><code>
  </group></code><br><code>
</comps></code><br><br></div>and then specify it when doing a createrepo and we're good to go?<br><br>If so thanks a million!!!<br><br>Grant<br>