[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: please say what -y (--assume-yes) is supposed to do



On Sat, Apr 02, 2016 at 11:33:38PM +0200, Adam Borowski wrote:
> Hi!
> There's some disagreement about the meaning of "apt-get -y <upgrade/...>".
> 
> The man page appears contrary to practice:
> 
> # -y, --yes, --assume-yes
> #    Automatic yes to prompts; assume "yes" as answer to all prompts and run
> #    non-interactively.  If an undesirable situation, such as changing a
> #    held package, trying to install a unauthenticated package or removing
> #    an essential package occurs then apt-get will abort.
> #    Configuration Item: APT::Get::Assume-Yes.
> 
> Of those, "--assume-yes" describes the current behaviour accurately ("yes"
> answer to most prompts, no switching to non-interactive), "run
> non-interactively" is a lie as most of the upgrade/install/etc process
> will require input, unless you set DEBIAN_FRONTEND=noninteractive.

assume-yes causes *APT* to run non-interactively, not dpkg. It means that any
yes/no prompt *APT* shows will assume yes, except for the dangerous ones which
require one of the --allow-{downgrades,unauthenticated,...} switches formerly
known as --force-yes.

should read something like:

"[...] all <APT> prompts and run non-interactively (except for prompts from
other parts like debconf)"

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: