我想知道是谁在我的debian中开始无人看管的升级:
如果我想改变我的日程,我必须在哪里检查/修改?
发布于 2017-02-05 15:33:08
如果我想改变我的日程,我必须在哪里检查/修改?
unattended-upgrades被配置为自动应用。
要验证它是否检查了/etc/apt/apt.conf.d/20auto-upgrades文件,您将得到:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";要修改它,您应该运行以下命令:
dpkg-reconfigure -plow unattended-upgrades 样本输出:
Applying updates on a frequent basis is an important part of keeping
systems secure. By default, updates need to be applied manually using
package management tools.
Alternatively, you can choose to have this system automatically download
and install security updates.
Automatically download and install stable updates?选择NO停止自动更新
再次验证/etc/apt/apt.conf.d/20auto-upgrades,您应该得到:
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";要运行unattended-upgrades每周一次,请按以下方式编辑/etc/apt/apt.conf.d/20auto-upgrades:
APT::Periodic::Update-Package-Lists "7";
APT::Periodic::Unattended-Upgrade "1";详细的示例可以在Debian-Wiki:自动调用:/etc/apt/apt.conf.d/02周期上找到。
APT::Periodic::Update-Package-Lists
此选项允许您指定刷新包列表的频率(以天为单位)。apticron用户可以不使用此变量,因为apticron已经完成了此任务。
发布于 2018-05-22 13:31:33
/etc/crontab有一个run-parts /etc/cron.daily行,它引用一个包含执行exec /usr/lib/apt/apt.systemd.daily的/etc/cron.daily/apt-compat文件的文件夹。
发布于 2017-02-05 16:05:03
anacron启动unattended-upgrades和其他系统-cron-作业。
cat /etc/anacrontab
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
# These replace cron's entries
1 5 cron.daily run-parts --report /etc/cron.daily
7 10 cron.weekly run-parts --report /etc/cron.weekly
@monthly 15 cron.monthly run-parts --report /etc/cron.monthlyhttps://unix.stackexchange.com/questions/342663
复制相似问题