小编sho*_*ory的帖子

如何让我的 shell 脚本自动接受提示?

我制作了一个简单的 shell 脚本(我以 root 身份运行)来下载我在重新安装 ubuntu 时可能需要的基本应用程序:它看起来像这样:

apt-get install docky && apt-get install geany && apt-get install firefox && apt-get install audacity && apt-get install kdenlive && apt-get install openshot && apt-get install shotwell && apt-get install stellarium && apt-get install thunderbird, etc...
Run Code Online (Sandbox Code Playgroud)

问题是我仍然收到 Y/n 提示,我需要手动一直按 Y。有没有办法可以自动接受所有提示并下载并安装所有内容?

gnome command-line apt bash scripts

1
推荐指数
1
解决办法
5272
查看次数

标签 统计

apt ×1

bash ×1

command-line ×1

gnome ×1

scripts ×1