Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use --yes flag for apt-get install #404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goretkin
Copy link

Addresses #403

@lobingera
Copy link
Contributor

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

@goretkin
Copy link
Author

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.

@tkelman
Copy link
Contributor

tkelman commented Jun 20, 2019

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

@lobingera
Copy link
Contributor

@tkelman So you recommend to have this only optional?

@goretkin
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants