I'd like to use the output from equery as parameters for other programs. For instance, in the past when a new KDE came about, to get rid of the old slot I would do something like this: emerge --prune $(qpkg -I -nc -g kde-base) However, this is not possible with equery as of yet. Although the output is paired down somewhat when it is piped or used in command substitution, it still prints a "description" line (a line like " * description of output"--e.g. " * installed packages" or " * Portage tree (/usr/portage)". However this makes the output undesirable--especially since the "*" is translated to every file and directory in $PWD. The following example should illustrate what I mean: emerge --prune --pretend $(equery --nocolor list --installed kde-base/) I had hoped that the --quiet option might be of use, but it currently does nothing with regard to the equery list command. You get the same output whether or not the option is present. It would be nice if --quiet just listed the packages and not all the other info, is that possible?
No such problem here. Which version are you using? % equery list www-client/ | cat * installed packages www-client/lynx-2.8.5 www-client/elinks-0.10.5-r1 www-client/w3m-0.5.1-r3 www-client/opera-8.50 www-client/mozilla-launcher-1.45 www-client/links-2.1_pre18 www-client/mozilla-firefox-1.5_beta1 % equery --quiet list www-client/ | cat www-client/lynx-2.8.5 www-client/elinks-0.10.5-r1 www-client/w3m-0.5.1-r3 www-client/opera-8.50 www-client/mozilla-launcher-1.45 www-client/links-2.1_pre18 www-client/mozilla-firefox-1.5_beta1 % emerge -pv gentoolkit These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] app-portage/gentoolkit-0.2.1_pre8 Total size of downloads: 0 kB (As a side note, because the output includes a version number but no operator, it's not directly usable; you'll need to pass the output through sed or something similar and have it either strip off the version number, or add an operator.)
I'm using the one marked as stable, app-portage/gentoolkit-0.2.0-r1. So, I guess this version's --quiet is broken. As for the side note you mentioned, that's simple enough to do. However, it'd be handy to have additional flags that do that for you, something like --no-version and --with-operator.
*** This bug has been marked as a duplicate of 78921 ***