YUM groupinstall question

Eran Ben Natan eranb at celltick.com
Mon Aug 12 15:06:44 UTC 2013


Hi,

I am using RPM to deploy our product to customers, and I want to start using YUM.
I created a test repository with group and it works fine, expect one issue:
Suppose I have the following RPMs, created with attached spec:
foo-1.0-1.x86_64.rpm
foo-2.0-1.x86_64.rpm
bar-1.0-1.x86_64.rpm
bar-2.0-1.x86_64.rpm

And I have the group xml below.
When I run yum groupinstall Test, it installs foo-2.0, bar-2.0, as expected.
But when I run yum groupinstall 'Test 1.0', I get:  No packages in any requested group available to install or update
yum groupinfo 'Test 1.0' shows foo-1.0 and bar-1.0, and if I run yum install foo-1.0 it works.
In  the YUM man page for groupinstall it states:  this works as if you'd taken each of those package names and put them on the command line for a "yum install" command

Does anyone knows what is the reason for this behavior, or what is the best practice to allow group install to specific version?

Thanks, Eran.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//Red Hat, Inc.//DTD Comps info//EN" "comps.dtd">
<comps>

  <group>
   <id>test</id>
   <default>false</default>
   <uservisible>true</uservisible>
   <display_order>1024</display_order>
   <name>Test</name>
   <description></description>
    <packagelist>
      <packagereq type="mandatory">foo</packagereq>
      <packagereq type="mandatory">bar</packagereq>
    </packagelist>
  </group>

  <group>
   <id>test_1.0</id>
   <default>false</default>
   <uservisible>true</uservisible>
   <display_order>1024</display_order>
   <name>Test 1.0</name>
   <description></description>
    <packagelist>
      <packagereq type="mandatory">foo-1.0</packagereq>
      <packagereq type="mandatory">bar-1.0</packagereq>
    </packagelist>
  </group>
</comps>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20130812/c648841a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum.spec
Type: application/octet-stream
Size: 458 bytes
Desc: yum.spec
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20130812/c648841a/attachment.obj>


More information about the Rpm-list mailing list