FAQ:Query for Installed Files
From rPath Wiki
| FAQ | ||
| Question: How can I determine what files are installed and maintained by certain Conary packages and groups? | ||
Answer: Use the --ls and --lsl options for conary query (often abbreviated conary q) to view file information associated with a trove. In the following example, Conary displays the listing of all the files that are part of the components comprising the sudo package. The --ls option displays the absolute path to each file, and the --lsl option displays information for each file is in ls -l (long list) format:
$ conary q sudo --ls /usr/share/doc/sudo-1.6.8p9/CHANGES /usr/share/doc/sudo-1.6.8p9/INSTALL ... /usr/libexec/sudo_noexec.so /usr/sbin/visudo $ conary q sudo --lsl -rw-r--r-- 1 root root 66788 Jun 19 2005 /usr/share/doc/sudo-1.6.8p9/CHANGES -rw-r--r-- 1 root root 29482 Sep 14 2004 /usr/share/doc/sudo-1.6.8p9/INSTALL ... -rwxr-xr-x 1 root root 10227 Oct 17 2005 /usr/libexec/sudo_noexec.so -rwxr-xr-x 1 root root 57164 Oct 17 2005 /usr/sbin/vi
List files for a specific component by specifying the component name with one of the list options. In the following example, Conary displays the files contained in the dia:doc component:
$ conary q dia:doc --ls /usr/share/doc/dia-0.95_1/COPYING /usr/share/doc/dia-0.95_1/ChangeLog /usr/share/doc/dia-0.95_1/INSTALL /usr/share/doc/dia-0.95_1/NEWS /usr/share/doc/dia-0.95_1/README /usr/share/doc/dia-0.95_1/TODO /usr/share/doc/dia-0.95_1/plug-ins/xslt/README /usr/share/doc/dia-0.95_1/po/ChangeLog /usr/share/doc/dia-0.95_1/shapes/Circuit/README /usr/share/man/man1/dia.1.gz
If you have a file name and wish to know the trove, use --path with conary query to display the component in which the file is packaged. In this example, Conary indicates that the specified file /usr/sbin/visudo was packaged as part of the sudo:runtime component:
$ conary q --path /usr/sbin/visudo sudo:runtime=1.6.8p9-2-0.1
