Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
On Sunday 17 Apr 2016 12:57:30 »Q« wrote: > I never want to add --pretend to the options; if I've used --ask, > I also meant to use sudo. I've looked through the documentation and > couldn't find a way to stop emerge from prompting me about --pretend, > so now I'm asking you if I've overlooked a way. $ alias emerj alias emerj='sudo emerge --jobs=25 --load-average=60 --keep-going' -- Rgds Peter
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
Neil Bothwick wrote: > On Sun, 17 Apr 2016 18:59:57 -0400, Philip Webb wrote: > Also, I've always used '-v' rather than '-a', as it's simpler. >>> It's not simpler, it's different. >> Oh dear (red face) : I meant to write '-p' ... > I'm sure you can find an exotic keymap to blame it on, one where v and p > are adjacent ;-) > > I still think -a is simpler, and faster, as using -p when you intend to do > the emerge for real afterwards means running two commands. The whole > point of adding -a was to save us having to do that any more. > > I sometimes call it independent finger thinking. In other words, my brain was thinking one thing but my finger was thinking something else. I hate when that happens tho, which is why I try to proof my emails at least twice and sometimes even more. :/ What would be nice, if we could do the same before we open our mouths in normal conversation. My foot tastes bad. lol Dale :-) :-)
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
On Sun, 17 Apr 2016 18:59:57 -0400, Philip Webb wrote: > >> Also, I've always used '-v' rather than '-a', as it's simpler. > > It's not simpler, it's different. > > Oh dear (red face) : I meant to write '-p' ... I'm sure you can find an exotic keymap to blame it on, one where v and p are adjacent ;-) I still think -a is simpler, and faster, as using -p when you intend to do the emerge for real afterwards means running two commands. The whole point of adding -a was to save us having to do that any more. -- Neil Bothwick The best antiques are old friends. pgpcWRFIruiXc.pgp Description: OpenPGP digital signature
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
160417 Neil Bothwick wrote: > On Sun, 17 Apr 2016 15:40:04 -0400, Philip Webb wrote: >> Also, I've always used '-v' rather than '-a', as it's simpler. > It's not simpler, it's different. Oh dear (red face) : I meant to write '-p' ... -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
On Sun, 17 Apr 2016 15:40:04 -0400, Philip Webb wrote: > Also, I've always used '-v' rather than '-a', as it's simpler. It's not simpler, it's different. -v clutters up the output with extra information you may or may not need. -a saves running the dependency calculations twice which is the case if you use -p and them emerge without. You can use -a with -v just as you can use -p without -v. -- Neil Bothwick IBM: Itty Bitty Mentality pgpAICR4n3Cw3.pgp Description: OpenPGP digital signature
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
160417 »Q« wrote: > I too often forget to use 'sudo' along with 'emerge --ask', > which gets me a prompt to add '--pretend' to the options. > I never want to add '--pretend' to the options : > if I've used '--ask', I also meant to use 'sudo'. If your machine isn't in a public place, why don't you use a root terminal ? That's what I've always done & have never used 'sudo', which isn't installed. Also, I've always used '-v' rather than '-a', as it's simpler. After 'emerge -pv ', I then carry on with 'emerge -1 ' or simply 'emerge ', if it's a World or System pkg. Really, there are simple ways of doing things with Gentoo, which avoid a lot of the complications + hassles others complain about. HTH (smile). -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
On Sun, Apr 17, 2016 at 8:57 PM, »Q«wrote: > I too often forget to use sudo along with emerge --ask, which gets me > a prompt to add --pretend to the options, e.g. > > $ emerge -a firefox > This action requires superuser access... > Would you like to add --pretend to options? [Yes/No] n > $ doh > Password: > > These are the packages that would be merged, in order: > > Calculating dependencies /... done! > > ( 'doh' is an alias for 'sudo $(history -p \!\!)' ) > > I never want to add --pretend to the options; if I've used --ask, > I also meant to use sudo. I've looked through the documentation and > couldn't find a way to stop emerge from prompting me about --pretend, > so now I'm asking you if I've overlooked a way. > > Yes, the 'Would you like to add --pretend to options?' query does seem to be hard-coded. See below. portage-2.2.26/pym/_emerge/actions.py:2976,3004 # check if root user is the current user for the actions where emerge needs this ... uq = UserQuery(emerge_config.opts) if uq.query("Would you like to add --pretend to options?", "--ask-enter-invalid" in emerge_config.opts) == "No": ... I wonder if running the command line in the debug mode, 'emerge -ad firefox', would reveal anything of interest.
Re: [gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
... What about aliasing emerge to sudo emerge? :-) Cheers Ralf On 04/17/2016 07:57 PM, »Q« wrote: > I too often forget to use sudo along with emerge --ask, which gets me > a prompt to add --pretend to the options, e.g. > > $ emerge -a firefox > This action requires superuser access... > Would you like to add --pretend to options? [Yes/No] n > $ doh > Password: > > These are the packages that would be merged, in order: > > Calculating dependencies /... done! > > ( 'doh' is an alias for 'sudo $(history -p \!\!)' ) > > I never want to add --pretend to the options; if I've used --ask, > I also meant to use sudo. I've looked through the documentation and > couldn't find a way to stop emerge from prompting me about --pretend, > so now I'm asking you if I've overlooked a way. > >
[gentoo-user] suppressing the 'would you like to add --pretend' prompt when using emerge --ask
I too often forget to use sudo along with emerge --ask, which gets me a prompt to add --pretend to the options, e.g. $ emerge -a firefox This action requires superuser access... Would you like to add --pretend to options? [Yes/No] n $ doh Password: These are the packages that would be merged, in order: Calculating dependencies /... done! ( 'doh' is an alias for 'sudo $(history -p \!\!)' ) I never want to add --pretend to the options; if I've used --ask, I also meant to use sudo. I've looked through the documentation and couldn't find a way to stop emerge from prompting me about --pretend, so now I'm asking you if I've overlooked a way.