Hi, Here is a patch that implement a new option to filter the "equery files" output. Usage is "equery files --filter=<rules> pkgspec", where <rules> is the comma separated list of elements types you want to output. Elements types can be: - "dir", "obj", "sym", "dev", "fifo": just like in portage CONTENTS files. - "path": this are directories where there was actually some files installed. Much shorter than "dir" for almost the same information. - "conf": this are configuration files of a package, based on CONFIG_PROTECT. - "cmd": this are commands provided by a package, based on your $PATH. I've wrote this because when i install a new software i don't know, i often wonder "where did it put its files", "where am i supposed to configure it", and "how do i launch it". Examples: % equery files --filter=dir galeon Searching for packages matching 'galeon'... Contents of net-www/galeon-1.2.13: /etc /etc/gconf /etc/gconf/schemas /etc/sound /etc/sound/events /usr /usr/bin /usr/lib /usr/lib/galeon /usr/lib/galeon/components /usr/share /usr/share/doc /usr/share/doc/galeon-1.2.13 /usr/share/galeon /usr/share/galeon/spinners /usr/share/galeon/spinners/crashcut /usr/share/galeon/spinners/galeon /usr/share/galeon/spinners/pipeon /usr/share/galeon/themes /usr/share/galeon/themes/Aquatic /usr/share/galeon/themes/GnomeLarge /usr/share/galeon/themes/Micro /usr/share/galeon/themes/Remembrance /usr/share/gnome /usr/share/gnome/apps /usr/share/gnome/apps/Internet /usr/share/gnome/help /usr/share/gnome/help/galeon-manual /usr/share/gnome/help/galeon-manual/C /usr/share/gnome/help/galeon-manual/C/figures /usr/share/gnome/help/galeon-manual/C/stylesheet-images /usr/share/gnome/ui /usr/share/locale /usr/share/locale/fr /usr/share/locale/fr/LC_MESSAGES /usr/share/man /usr/share/man/man1 /usr/share/oaf /usr/share/omf /usr/share/omf/galeon /usr/share/pixmaps /usr/share/sounds /usr/share/sounds/galeon /var /var/lib % equery files --filter=path galeon Searching for packages matching 'galeon'... Contents of net-www/galeon-1.2.13: /etc/gconf/schemas /etc/sound/events /usr/bin /usr/lib/galeon/components /usr/share/doc/galeon-1.2.13 /usr/share/galeon /usr/share/gnome/apps/Internet /usr/share/gnome/help/galeon-manual/C /usr/share/gnome/ui /usr/share/locale/fr/LC_MESSAGES /usr/share/man/man1 /usr/share/oaf /usr/share/omf/galeon /usr/share/pixmaps /usr/share/sounds/galeon % equery files --filter=conf galeon Searching for packages matching 'galeon'... Contents of net-www/galeon-1.2.13: /etc/gconf/schemas/galeon.schemas /etc/sound/events/galeon.soundlist % equery files --filter=cmd galeon Searching for packages matching 'galeon'... Contents of net-www/galeon-1.2.13: /usr/bin/galeon /usr/bin/galeon-bin /usr/bin/galeon-config-tool Reproducible: Always Steps to Reproduce:
Created attachment 26688 [details, diff] equery--files-filter.patch Patch is against /usr/bin/equery from app-portage/gentoolkit-0.2.0_pre6.
Will look at it.
It looks good. Will apply. Thanks!
Created attachment 40644 [details, diff] equery-0.2.0_pre9--files_filter.patch Here is an updated patch for gentoolkit-0.2.0_pre9. I've also added three more filters ("doc", "man" and "info").
Created attachment 40645 [details, diff] equery.1--files_filter.patch And here is a patch for the manpage.
should be fixed in gentoolkit-0.2.0_pre10