Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does sudo apt install -y do? [closed]

Tags:

linux

ssh

I've noticed that some installations for packages include a -y in sudo apt install. I'm just curious and I've googled this already.

like image 434
Marco C. Avatar asked Mar 09 '26 10:03

Marco C.


1 Answers

Man pages are your friend: https://linux.die.net/man/8/apt-get

The option -y tells apt-get to assume the answer to all prompts is yes. When you typically install something, it will ask you if you want to proceed after finding the right packages. With -y, you won't need to answer that prompt, the installation will proceed automatically.

like image 58
anonmess Avatar answered Mar 11 '26 22:03

anonmess



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!