1 |
On 26 May 2009, at 10:57, Nikos Chantziaras wrote: |
2 |
|
3 |
> Stroller wrote: |
4 |
>> Hi there, |
5 |
>> When I install a new package I run `emerge -pv foo` to look at the |
6 |
>> USEs it supports. In the past I have looked these up just by |
7 |
>> grepping, e.g.: |
8 |
>> $ grep foo /usr/portage/profiles/use.* |
9 |
>> /usr/portage/profiles/use.desc:foomaticdb - Adds support for the |
10 |
>> foomatic printing driver database |
11 |
>> $ |
12 |
>> However I have recently learned to use `euse -i foo` instead. This |
13 |
>> is much more convienient than grepping because one can use the Bash |
14 |
>> history: up-arrow, ctrl-w to delete the last word & type in or |
15 |
>> paste the name of the next USE to check it. However this is clumsy |
16 |
>> when you have a package (like mplayer) with many USE flags. |
17 |
>> What I would like to be able to do is: |
18 |
>> $ $magicusecommand category/package |
19 |
>> doc - Install HTML wxWidgets docs and wxpython API reference. |
20 |
>> examples - Install interactive demo module browser and sample |
21 |
>> applets. |
22 |
>> samba - Adds support for SAMBA (Windows File and Printer sharing) |
23 |
>> $ |
24 |
>> The command should print out the descriptions for ALL the USE flags |
25 |
>> supported by the category/package, but only for that category/ |
26 |
>> package. Ideally it should show if they're currently enabled or not. |
27 |
>> I can't be the only person to desire this feature - surely there |
28 |
>> must be a package or command do do this. I can't find this in `man |
29 |
>> portage` as an advanced version of `emerge -pv package`. Can anyone |
30 |
>> tell me what $magicusecommand is called, please? |
31 |
> |
32 |
> equery uses <package atom> |
33 |
|
34 |
Many thanks! |
35 |
|
36 |
I have been for sometime trying to be able to make something useful of |
37 |
Justin's advice. euse & quse are incorrect, but emeta looks like it |
38 |
will do the job; emteta is in the genscripts overlay, but layman has |
39 |
been frustrating me. |
40 |
|
41 |
Your suggestion has solved the problem immediately. |
42 |
|
43 |
Many thanks! |
44 |
|
45 |
Stroller. |