Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In Fedora 13 distribution, how can one find what an install group a package belongs to? As an example, I would like to know what install group the package inkscape belongs to.

Using:

yum info inkscape

does not show the group information.

I know how to do this using a script which lists all groups and subsequently lists all the packages per group and greps the package of interest out of it. I'd like to know if it is possible to do this an easier way using an existing tool.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

How about rpm -qi?

user@linux [~]# rpm -qi rpm
Name        : rpm                          Relocations: (not relocatable)
...
Group       : System Environment/Base       ...
....

Works for me.

Okay, I'm bored, here are some other options:

user@linux [~]# rpm -q --qf '%{GROUP}\n' rpm
System Environment/Base

For bonus points:

user@linux [~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}: %{GROUP}\n' rpm
rpm-4.3.3-33_nonptl.el4_8.1.i386: System Environment/Base

(Yeah, it's an old EL4 virtual box. It's what I had handy, so sue me.)

And now for the whole shebang:

user@linux [~]# rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}: %{GROUP}\n'
redhat-logos-1.1.26-1.centos4.4.noarch: System Environment/Base
basesystem-8.0-4.noarch: System Environment/Base
libcap-1.10-20.i386: System Environment/Libraries
gmp-4.1.4-3.i386: System Environment/Libraries
keyutils-1.0-2.i386: System Environment/Base
psmisc-21.4-4.1.i386: Applications/System
zlib-1.2.1.2-1.2.i386: System Environment/Libraries
pyxf86config-0.3.19-1.i386: System Environment/Libraries
passwd-0.68-10.1.i386: System Environment/Base
...

etc.

share|improve this answer
    
Thanks - this was very helpful and put me on the right track. –  Mansour Oct 1 '10 at 2:41
    
What I actually wanted was to query the repository - for instance, using rpm requires the package to be installed. I found repoquery tool which does the same thing over the entire list of packages available from the repository. –  Mansour Oct 1 '10 at 2:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.