我总是看到这样的命令
apt-get -y install
Run Code Online (Sandbox Code Playgroud)
什么是-y标签的,是什么样的区别apt-get install有和没有-y标记?
kar*_*rel 191
从运行结果来看 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.
Run Code Online (Sandbox Code Playgroud)
如果您在没有该-y选项的情况下运行 apt-get 命令,则需要以交互方式回答从该命令获得的所有提示,以便继续执行该命令。
| 归档时间: |
|
| 查看次数: |
126209 次 |
| 最近记录: |