What is the -y flag used for in apt-get install? [closed]
What does the -y
flag do when you're running apt-get install
?
Example, from https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions:
sudo apt-get install -y nodejs
ubuntu command-line-interface apt
closed as off-topic by tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub Nov 16 '18 at 15:45
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub
If this question can be reworded to fit the rules in the help center, please edit the question.
|
show 1 more comment
What does the -y
flag do when you're running apt-get install
?
Example, from https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions:
sudo apt-get install -y nodejs
ubuntu command-line-interface apt
closed as off-topic by tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub Nov 16 '18 at 15:45
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub
If this question can be reworded to fit the rules in the help center, please edit the question.
1
You're quoting the man page for theless
command. Forapt-get
, the-y
option assumes "yes" as the answer for all prompts.
– Keith Thompson
Apr 26 '16 at 18:57
I'm voting to close this question as off-topic because it's not a programming question. Try Ask Ubuntu.
– Keith Thompson
Apr 26 '16 at 18:58
1
Kk or we could move it... Thanks for pointing that out though I fixed that.
– saricden
Apr 26 '16 at 19:00
1
Yeah alright, but maybe someone else will be curious about this one day and it'll help them out.
– saricden
Apr 26 '16 at 19:03
@KirkM-saricDen you're right, thank you!
– Razi Shaban
May 8 '17 at 22:13
|
show 1 more comment
What does the -y
flag do when you're running apt-get install
?
Example, from https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions:
sudo apt-get install -y nodejs
ubuntu command-line-interface apt
What does the -y
flag do when you're running apt-get install
?
Example, from https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions:
sudo apt-get install -y nodejs
ubuntu command-line-interface apt
ubuntu command-line-interface apt
edited Apr 26 '16 at 19:01
Keith Thompson
194k26290484
194k26290484
asked Apr 26 '16 at 18:49
saricdensaricden
46011027
46011027
closed as off-topic by tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub Nov 16 '18 at 15:45
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub Nov 16 '18 at 15:45
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – tripleee, Mike M., Vadim Kotov, E_net4, Paul Roub
If this question can be reworded to fit the rules in the help center, please edit the question.
1
You're quoting the man page for theless
command. Forapt-get
, the-y
option assumes "yes" as the answer for all prompts.
– Keith Thompson
Apr 26 '16 at 18:57
I'm voting to close this question as off-topic because it's not a programming question. Try Ask Ubuntu.
– Keith Thompson
Apr 26 '16 at 18:58
1
Kk or we could move it... Thanks for pointing that out though I fixed that.
– saricden
Apr 26 '16 at 19:00
1
Yeah alright, but maybe someone else will be curious about this one day and it'll help them out.
– saricden
Apr 26 '16 at 19:03
@KirkM-saricDen you're right, thank you!
– Razi Shaban
May 8 '17 at 22:13
|
show 1 more comment
1
You're quoting the man page for theless
command. Forapt-get
, the-y
option assumes "yes" as the answer for all prompts.
– Keith Thompson
Apr 26 '16 at 18:57
I'm voting to close this question as off-topic because it's not a programming question. Try Ask Ubuntu.
– Keith Thompson
Apr 26 '16 at 18:58
1
Kk or we could move it... Thanks for pointing that out though I fixed that.
– saricden
Apr 26 '16 at 19:00
1
Yeah alright, but maybe someone else will be curious about this one day and it'll help them out.
– saricden
Apr 26 '16 at 19:03
@KirkM-saricDen you're right, thank you!
– Razi Shaban
May 8 '17 at 22:13
1
1
You're quoting the man page for the
less
command. For apt-get
, the -y
option assumes "yes" as the answer for all prompts.– Keith Thompson
Apr 26 '16 at 18:57
You're quoting the man page for the
less
command. For apt-get
, the -y
option assumes "yes" as the answer for all prompts.– Keith Thompson
Apr 26 '16 at 18:57
I'm voting to close this question as off-topic because it's not a programming question. Try Ask Ubuntu.
– Keith Thompson
Apr 26 '16 at 18:58
I'm voting to close this question as off-topic because it's not a programming question. Try Ask Ubuntu.
– Keith Thompson
Apr 26 '16 at 18:58
1
1
Kk or we could move it... Thanks for pointing that out though I fixed that.
– saricden
Apr 26 '16 at 19:00
Kk or we could move it... Thanks for pointing that out though I fixed that.
– saricden
Apr 26 '16 at 19:00
1
1
Yeah alright, but maybe someone else will be curious about this one day and it'll help them out.
– saricden
Apr 26 '16 at 19:03
Yeah alright, but maybe someone else will be curious about this one day and it'll help them out.
– saricden
Apr 26 '16 at 19:03
@KirkM-saricDen you're right, thank you!
– Razi Shaban
May 8 '17 at 22:13
@KirkM-saricDen you're right, thank you!
– Razi Shaban
May 8 '17 at 22:13
|
show 1 more comment
1 Answer
1
active
oldest
votes
It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
add a comment |
It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
add a comment |
It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.
It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.
edited May 22 '18 at 18:20
Nathan
387115
387115
answered Apr 26 '16 at 18:53
LuisKxLuisKx
239125
239125
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
add a comment |
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
Makes sense thank you :)
– saricden
Apr 26 '16 at 19:01
add a comment |
1
You're quoting the man page for the
less
command. Forapt-get
, the-y
option assumes "yes" as the answer for all prompts.– Keith Thompson
Apr 26 '16 at 18:57
I'm voting to close this question as off-topic because it's not a programming question. Try Ask Ubuntu.
– Keith Thompson
Apr 26 '16 at 18:58
1
Kk or we could move it... Thanks for pointing that out though I fixed that.
– saricden
Apr 26 '16 at 19:00
1
Yeah alright, but maybe someone else will be curious about this one day and it'll help them out.
– saricden
Apr 26 '16 at 19:03
@KirkM-saricDen you're right, thank you!
– Razi Shaban
May 8 '17 at 22:13