Personal tools
     DOCUMENTATION

FAQ:Query Installed Groups for Information

From rPath Wiki

Jump to: navigation, search
FAQ
Question: How can I get information about installed groups on a Conary-based system?


Answer: Use conary query (often abbreviated as conary q) to get information about a group in the same way as for other troves installed on a Conary-based system.

To list all installed groups, grep conary q with the string group- which is the prefix of every group name.

$ conary q | grep group-
group-base=0.2.0-1-6[~MySQL-python.threadsafe,~glibc.tls,~!grub.static,~!kernel.debug,
~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,~!openssh.static_libcrypto,
~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint is: x86(~!mmx,~!sse2)]
group-core=0.3.1-1-1[~MySQL-python.threadsafe,~glibc.tls,~!grub.static,~!kernel.debug,
~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,~!openssh.static_libcrypto,
~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint is: x86(~!mmx,~!sse2)]
group-devel=1.0.3-0.4-15[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,~!grub.static,
~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]
group-dist-extras=1.0.2-0.10-15[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,
~!grub.static,~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]
...
group-xorg=1.0.3-0.4-15[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,
~!grub.static,~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]

In the example, each group has an output string in brackets that wraps to the next two or three lines. This string displays the flavor of each group.

Use the group name in the same way as package and component names to specify a group in the query command:

$ conary q group-core
group-core=0.3.1-1-1[~MySQL-python.threadsafe,~glibc.tls,~!grub.static,~!kernel.debug,
~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,~!openssh.static_libcrypto,
~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint is: x86(~!mmx,~!sse2)]

Use --troves to list group troves that make up the group:

$ conary q group-dist --troves
group-dist=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,~!grub.static,
~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]
group-base=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,~!grub.static,
~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]
...
group-xorg=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,~!grub.static,
~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,
~!xorg-x11.xprint is: x86(~!mmx,~!sse2)]

Use --recurse to display a hierarchy of groups (shown by indentation) within a group (such as for top-level groups) and packages within the groups:

$ conary q group-dist --recurse
group-dist=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,~!grub.static,
~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]
  group-base=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,
  ~!grub.static,~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
  ~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
  is: x86(~!mmx,~!sse2)]
    ImageMagick=6.2.3.3-3.3-1
    MAKEDEV=3.19-4-0.2
    a2ps=4.13b-17-0.1[~!builddocs]
    acl=2.2.28-2-0.1
    acpid=1.0.4-6-0.1
    alsa-lib=1.0.9-2-0.1[~!builddocs]
    alsa-utils=1.0.9a-3-0.1
    anacron=2.3-9-0.1
    apmd=3.0.2-11-0.1
    arpwatch=2.1a13-4-0.1
    ...

Combine options if desired to extend the functions of each option. Combining --troves and --recurse adds components for each group in the output hierarchy:

$ conary q group-dist --troves --recurse
group-dist=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,~!grub.static,
~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
is: x86(~!mmx,~!sse2)]
  group-base=1.0.3-0.4-29[~MySQL-python.threadsafe,~!builddocs,~glibc.tls,
  ~!grub.static,~!kernel.debug,~!kernel.debugdata,~!kernel.numa,~!openssh.smartcard,
  ~!openssh.static_libcrypto,~!postfix.mysql,sasl,~sqlite.threadsafe,~!xorg-x11.xprint 
  is: x86(~!mmx,~!sse2)]
    ImageMagick=6.2.3.3-3.3-1
      ImageMagick:data=6.2.3.3-3.3-1
      ImageMagick:devel=6.2.3.3-3.3-1
      ImageMagick:devellib=6.2.3.3-3.3-1
      ImageMagick:doc=6.2.3.3-3.3-1
      ImageMagick:lib=6.2.3.3-3.3-1
      ImageMagick:perl=6.2.3.3-3.3-1
      ImageMagick:runtime=6.2.3.3-3.3-1
    MAKEDEV=3.19-4-0.2
      MAKEDEV:doc=3.19-4-0.2
      MAKEDEV:runtime=3.19-4-0.2
    a2ps=4.13b-17-0.1[~!builddocs]
      a2ps:data=4.13b-17-0.1[~!builddocs]
      a2ps:devel=4.13b-17-0.1[~!builddocs]
      a2ps:devellib=4.13b-17-0.1[~!builddocs]
      ...