在Debian系统中,可通过配置apt工具来确保系统只安装安全更新补丁,而不进行完整的系统升级。以下是实现步骤:1、安装 unattended-upgrades 包sudo apt-get update
sudo apt-get install unattended-upgrades2、修改apt配置文件sudo vi /etc/apt/apt.conf.d/50unattended-upgrades
注释掉这三行
"origin=Debian,codename=${distro_codename},label=Debian";
Unattended-Upgrade::Package-Blacklist {
};
只保留如下所示即可。
grep -v '//' /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Origins-Pattern {
"origin=Debian,codename=${distro_codename},label=Debian-Security";
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
};3、更新并应用配置:su
...
继续阅读
(30)