Home_greyopenFATE - openSUSE feature tracking > #306653
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Default confirmation in zypper should be set to No

Feature state

Rejected Information


At the moment when doing
zypper remove whatever the default of the confimation is set to YES. This is quite dangerous because dependencies will also be removed.

I suggest to set all default confirmation answers to NO to prevent unintended actions when accidentialy pressing the enter key in the wrong terminal or similar Murphy occurences.


icons/user_comment.png J. K. wrote: (9 years ago)

I strongly disagree on this. Murphy will always strike in various ways, but this change would make working with zypper more annoying. The default 'yes' reply on enter was added to zypper because many people actually requested that it be this easy to _proceed_ with the installation, not to cancel it. Some people even request that in some simple cases zypper should proceed without any confirmation (see https://bugzilla.novell.com/show_bug.cgi?id=395754 ). So i would like to leave it as it is.

icons/user_comment.png L. d. wrote: (9 years ago)

remove it is indeed very dangerous I cannot agree with you, with
install I partially agree with you. Maybe worth to look at yum: the parameter -y assumes YES to the question to proceed or not. It is just three key presses more ;-)

icons/user_comment.png J. K. wrote: (9 years ago)

I see your point with removal, and i partially agree, but still, there is this need to hit the [enter] key to contiue which should prevent most accidents (if you don't have a broken keyboard with a stuck enter key :O). And even if an accident happens, you still can hit ctrl+c twice, and reinstall the unwantedly removed packages; zypper won't let you remove the essential ones like glibc without additional confirmation.

As for 'yum -y', zypper has 'zypper -n' (--non-interactive) equivalent to do this. But that's not what most users want. They want to see the proposal (installation summary), and if they like it they want to confirm with a simple [enter] keystroke (and some want zypper to proceed right away in special cases). This is very different from 'yum -y' or 'zypper -n'.
I would agree with making this configurable - have zypper.conf option to choose the default answer for the 'Continue?' prompt. But then again, i don't see real need for it.

And to the 'just 3 key presses more' argument: people wanted badly to get rid even of one keypress more (when they had to type 'y[enter]')!

Last change: 9 years ago
Loading tags...
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint