<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># this will set APT::Periodic::Update-Package-Lists in /etc/apt/apt.conf
# apt.conf is in turn read by the apt cron file loacted in /etc/cron.daily/apt
# the /etc/crontab file must have the daily line for daily to be run

type: u32

default: 1

help: Set to update the the repository cache every n days (0 disables auto-update)

syntax:expression: $VAR(@) &gt;= 0 &amp;&amp; $VAR(@) &lt; 32 ; "auto-sync must be between 0 and 32 days"

update:expression: "sudo sh -c \"touch /etc/apt/apt.conf &amp;&amp; \
    sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf &amp;&amp; \
    echo \\\"APT::Periodic::Update-Package-Lists \\\"$VAR(@)\\\";\\\" &gt;&gt; /etc/apt/apt.conf\" "

delete:expression: "sudo sh -c \"touch /etc/apt/apt.conf &amp;&amp; \
    sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf\" "
</pre></body></html>