BinDeps.jl icon indicating copy to clipboard operation
BinDeps.jl copied to clipboard

Use --yes flag for apt-get install

Open goretkin opened this issue 5 years ago • 5 comments

Addresses https://github.com/JuliaPackaging/BinDeps.jl/issues/403

goretkin avatar Jun 18 '19 20:06 goretkin

Is --yes side-effect free? (read as: should this be the default, or an option)

lobingera avatar Jun 19 '19 07:06 lobingera

I don't know why this wouldn't be the default. Without it (or other option) apt-get is an interactive program, since it prompts users in some circumstances. I don't understand clearly which circumstances those are, to be honest. Maybe when there are many second-order dependencies.

goretkin avatar Jun 20 '19 06:06 goretkin

see #311 etc, there have been many past discussions on this. when sudo is involved it's very dangerous to be doing system-wide things without the user paying attention

tkelman avatar Jun 20 '19 06:06 tkelman

@tkelman So you recommend to have this only optional?

lobingera avatar Jun 20 '19 08:06 lobingera

In my case, I just want to install packages in a docker image, and it asks to confirm that I want to install additional packages.

I don't understand the danger of -y, but if you claim it's dangerous, then we can be cautious.

The other option is to set the environment variable DEBIAN_FRONTEND=noninteractive, which I guess a user can already do.

goretkin avatar Jun 20 '19 14:06 goretkin