我总是看到这样的命令
apt-get -y install
标签是做什么用的,有标签和没标签-y
有什么区别?apt-get install
-y
答案1
从运行结果来看man apt-get
-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all prompts and
run non-interactively. If an undesirable situation, such as
changing a held package, trying to install a unauthenticated
package or removing an essential package occurs then apt-get will
abort. Configuration Item: APT::Get::Assume-Yes.
如果您运行不带该选项的 apt-get 命令-y
,则需要以交互方式回答从该命令获得的所有提示,以便继续执行该命令。