What is the -y flag used for in apt-get install? [closed]

怎甘沉沦 提交于 2019-12-23 10:41:14

问题


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

回答1:


It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.



来源:https://stackoverflow.com/questions/36873361/what-is-the-y-flag-used-for-in-apt-get-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!