发新话题
打印

Linux中在批处理里自动运行系统升级命令

Linux中在批处理里自动运行系统升级命令

# export DEBIAN_FRONTEND=noninteractive
# apt update
# apt upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
# apt autoremove -y

参考:
https://handyman.dulare.com/apt-upgrade-without-configuration-related-prompts/

TOP

发新话题