The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #5175

yum provider + package groups giving unnecessary errors

Added by Daniel Grafe over 5 years ago. Updated over 2 years ago.

Status:AcceptedStart date:11/02/2010
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Affected Puppet version: Branch:
Keywords:yum redhat

We've Moved!

Ticket tracking is now hosted in JIRA:

This ticket is now tracked at:


We are using convenient package groups on rhel5.5. For instance, package group @base-x will automatically install X related packages.

The yum provider is throwing “Could not find package” errors although the packages of this group have been successfully installed. The self.query check of the rpm parent class fails because rpm can not handle yum package groups.

Please find attached our quick fix of the yum provider. Package groups are identified by checking for the preceding ‘@’. Yum will be used instead of the rpm tool when checking for the existence of the given package group.

yum.rb Magnifier (3.26 KB) Daniel Grafe, 11/02/2010 10:04 am

Related issues

Duplicated by Puppet - Bug #11995: Add group install to Package Duplicate 01/17/2012


#1 Updated by Nigel Kersten over 5 years ago

  • Status changed from Unreviewed to Accepted

#2 Updated by Dominic Cleal over 4 years ago

  • Keywords set to yum redhat

The issue mentioned in #11995 is about being able to determine the current, whether the group’s installed or not. This should be possible with “yum grouplist” which separates groups into “Installed Groups”, “Installed Language Groups” and “Available Groups” but it needs some work in the yum provider as the rpm package list won’t supply the data.

#3 Updated by Brett Maton almost 4 years ago

As a work around, this might help:

yum grouplist “Development tools” | grep “Installed Groups”

returns 0 if Development tools is installed, 1 otherwise. For the moment it’s working for me…

#  Not very elegant, but it's a work around
exec { 'yum Group Install':
  unless  => '/usr/bin/yum grouplist "Development tools" | /bin/grep "^Installed Groups"',
  command => '/usr/bin/yum -y groupinstall "Development tools"',

#4 Updated by Anonymous over 2 years ago

Redmine Issue #5175 has been migrated to JIRA:

Also available in: Atom PDF