apt-get安装中使用的-y标志是什么? [英] What is the -y flag used for in apt-get install?
本文介绍了apt-get安装中使用的-y标志是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行apt-get install
时-y
标志有什么作用?
What does the -y
flag do when you're running apt-get install
?
示例,来自 https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions :
sudo apt-get install -y nodejs
推荐答案
它将跳过安装确认.安装软件包时,Ubuntu要求确认(是/否).使用-y,Ubuntu不会询问.
It skips the confirmation of the installation. When you install a package, Ubuntu asks for confirmation (Y/N). With -y, Ubuntu does not ask.
这篇关于apt-get安装中使用的-y标志是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文