Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3681694
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:42:56+00:00 2026-05-19T03:42:56+00:00

Is it possible for single rpm package to belong to several groups? In spec

  • 0

Is it possible for single rpm package to belong to several groups?

In spec file you can set package group:

Group: System Environment/Base

What I need is to be able to set several groups for this package (like System|Util|MyCompanyName) – they would be like tags assigned to the package.

When the package is installed I want to query it like

rpm -q --group System

or

rpm -q --group MyCompanyName

and in both cases I should see my package (and others belonging to this group)


Edit:

Many packages may belong to MyCompanyName group, but only few may be installed. I need a way to differentiate our packages from linux system packages – I was planning to do it using the group name


I tried putting several Group: lines, but it only uses the last one. Everything after Group: seems to be taken as one string and I couldn’t find a way to split them.

Another solution that I could think of is putting this stuff as PROVIDES and then to query

rpm -q --whatprovides System

but I don’t like it this way.

Is there other way to accomplish the requested functionality?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:42:56+00:00Added an answer on May 19, 2026 at 3:42 am

    The correct way to specify your company name is via the Vendor tag like this:

    Vendor: Yoyodyne, Inc.
    

    To get a list of packages by vendor you can run this command:

    rpm -qa --qf '%{NAME} %{VENDOR}\n' | grep -v Yoyodyne
    

    An RPM can only belong to one group. Furthermore, the allowable groups is defined by the distribution.

    To find the valid groups for a particular distribution you must often run the package manager for that distro and look at the list.

    RPM is not nearly as well defined as the Debian package format is. There seems to be no official or thorough documentation.

    http://www.rpm.org/max-rpm/s1-rpm-inside-tags.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to extract a single file or diff of a file from
Is it possible for a single app to have two notifyicons? How can this
Is it possible to update single py file in existing GAE app.something like we
Is it possible to use single XML file for Ruby on Rails as an
is it possible to exclude single sortbale items from being dropped on another list?
Possible Duplicate: Is there a difference between single and double quotes in Java? I've
Possible Duplicate: How to implement a single instance Java application? is there a way
Possible Duplicate: When to Use Double or Single Quotes in JavaScript Are there differences
Possible Duplicate: How to find a duplicate of length 5 in a single array.
Possible Duplicate: How do I replace multiple spaces with a single space in C#?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.