【Linux】apt-get install 怎么阻止弹出框,使用脚本默认自动安装?
2016-04-22 15:45
477 查看
You can do a couple of things for avoiding this. Setting the
If you need to install it via sudo, use:
[/code]
How do I ask apt-get to skip any interactive post-install configuration steps?:http://serverfault.com/questions/227190/how-do-i-ask-apt-get-to-skip-any-interactive-post-install-configuration-stepshttp://superuser.com/questions/928463/hit-enter-automatically-when-running-apt-get-install-package-prompts-a-dialoghttp://askubuntu.com/questions/448358/automating-apt-get-install-with-assume-yes
DEBIAN_FRONTENDvariable to
noninteractiveand using
-yflag. For example:
export DEBIAN_FRONTEND=noninteractive apt-get -y install [packagename]
If you need to install it via sudo, use:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install [packagename]参考资料:
[/code]
How do I ask apt-get to skip any interactive post-install configuration steps?:http://serverfault.com/questions/227190/how-do-i-ask-apt-get-to-skip-any-interactive-post-install-configuration-stepshttp://superuser.com/questions/928463/hit-enter-automatically-when-running-apt-get-install-package-prompts-a-dialoghttp://askubuntu.com/questions/448358/automating-apt-get-install-with-assume-yes
相关文章推荐
- Linux C 字符串操作的基本使用
- centos 7 的几点改动
- centos下完全卸载mysql
- 一点小知识
- InetAddress.getLocalHost().getHostAddress()获取的ip为127.0.0.1
- linux性能监控——CPU、Memory、IO、Network
- Linux下tmpfs与ramfs的区别
- linux挂载文件系统过程-转载内容与自己的一些理解
- centos 安装haproxy 1.6.3
- linux 时钟时间,用户CPU时间,系统CPU时间 .
- Centos 7&6分布式lamp平台
- Linux的网卡由eth0变成了eth1,如何修复
- iptables限速
- CentOS安装crontab及使用方法
- 在Linux 双机下自己手动实现浮动ip技术
- Linux中mysql的root密码重置
- phpStudy for Linux 和 piwik的安装详解
- CentOS 7 firewalld使用简介
- linux之vim命令使用
- linux下各种格式的压缩包的压缩、解压方法