apt-get 安装中使用的 -y 标志是什么? [英] What is the -y flag used for in apt-get install?

查看:36
本文介绍了apt-get 安装中使用的 -y 标志是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

-y 标志在您运行 apt-get install 时有什么作用?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆