Gentoo Archives: gentoo-user

From: Ralf <ralf+gentoo@×××××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
Date: Sun, 17 Apr 2016 18:03:11
Message-Id: 5713CFCE.8080807@ramses-pyramidenbau.de
In Reply to: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask by "»Q«"
1 ... What about aliasing emerge to sudo emerge? :-)
2
3 Cheers
4 Ralf
5
6 On 04/17/2016 07:57 PM, »Q« wrote:
7 > I too often forget to use sudo along with emerge --ask, which gets me
8 > a prompt to add --pretend to the options, e.g.
9 >
10 > $ emerge -a firefox
11 > This action requires superuser access...
12 > Would you like to add --pretend to options? [Yes/No] n
13 > $ doh
14 > Password:
15 >
16 > These are the packages that would be merged, in order:
17 >
18 > Calculating dependencies /... done!
19 >
20 > ( 'doh' is an alias for 'sudo $(history -p \!\!)' )
21 >
22 > I never want to add --pretend to the options; if I've used --ask,
23 > I also meant to use sudo. I've looked through the documentation and
24 > couldn't find a way to stop emerge from prompting me about --pretend,
25 > so now I'm asking you if I've overlooked a way.
26 >
27 >

Replies