[aklug] Debian Question: Automatic Repository Refresh

Royce Williams royce at tycho.org
Tue Jul 11 05:50:57 AKDT 2017


I'm not positive, but I think that if you're not using unattended-upgrades,
sources won't be refreshed until you ask.

I'm not sure how to change the default of one day, though.

$ zcat /usr/share/doc/unattended-upgrades/README.md.gz | perl -ne 'BEGIN {
$/="\n\n" }; print if $_ =~ /day/;'
The unattended-upgrades package is normally activated by
software-properties or via debconf. By default this runs an update
every day.

To activate this script manually you need to ensure that the apt
configuration contains the following lines (this can be done via the
graphical "Software Source" program or via dpkg-reconfigure as well):
```
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
```
This means that it will check for upates every day and install them
(if that is possible). If you have update-notifier installed, it will
setup /etc/apt/apt.conf.d/10periodic. Just edit this file then to fit
your needs. If you do not have this file, just create it or
create/edit /etc/apt/apt.conf - you can check your configuration by
running "apt-config dump".


On Tue, Jul 11, 2017 at 5:32 AM, Christopher Howard <
christopher.howard at qlfiles.net> wrote:

> Hi list, Debian security question: I know how to run apt-get update, but
> where do I check on the system to see how often (if ever) that command
> is running automatically? I don't want automatic updates, but I do want
> the repositories being refreshed every day, and I'm not sure how often
> it is happening.
>
> --
> https://qlfiles.net
> _______________________________________________
> aklug mailing list
> aklug at aklug.org
> https://lists.aklug.org/mailman/listinfo/aklug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aklug.org/pipermail/aklug/attachments/20170711/0afda4d8/attachment.html>


More information about the aklug mailing list