Board logo

标题: apt-get安装时避免提问回答 [打印本页]

作者: linda    时间: 2021-7-1 16:30     标题: apt-get安装时避免提问回答

apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install dnsmasq -y

参考:
https://stackoverflow.com/questions/51386952/automate-apt-get-install-dnsmasq-with-prompt
https://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/




欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0