Skip to content

com.limdm.updates

Console: Software updates.

{"mode": "security", "window": "02:00-05:00", "reboot": false}

With all patch management fields:

{"mode": "security", "window": "22:00-04:00", "reboot": true, "days": ["sat", "sun"], "hold": ["nginx"],
 "autoremove": true, "snap_refresh": "window",
 "reboot_notice_minutes": 10, "reboot_max_defers": 2, "reboot_defer_minutes": 60}
Field Type Rules
mode text off, security or all
window text local time HH:MM-HH:MM; required unless mode is off (and then still required with snap_refresh window)
reboot true or false restart inside the window when an update requires it
days list of text mon … sun, each once; empty means every day
hold list of text up to 200 package names kept at their installed version
autoremove true or false remove packages nothing needs any more after each update run
snap_refresh text empty (snapd untouched), hold or window
reboot_notice_minutes number 0 to 120; 0 or absent means 5
reboot_max_defers number 0 to 5, default 0
reboot_defer_minutes number 15 to 480; 0 or absent means 60
rules list rules per source; when present they replace mode (which may then be off or empty); see below
rules[].source text os_security, os_all, third_party or flatpak, each once
rules[].mode text off, notify (report only) or install
rules[].window, rules[].days text, list as window and days; an empty window takes the declaration's window and days
rules[].rings true or false install once per wave of the device's update ring
rules[].repos list of text third_party only: up to 50 apt origins, dnf repo IDs or zypper aliases (glob); empty is every third party repository
security_max_days number 0 to 365; the check updates.security_age fails after this many days of pending security updates, 14 when 0

What runs per distribution family:

Family security all
Debian, Ubuntu unattended-upgrade (installed when missing) apt-get upgrade --with-new-pkgs, then Flatpak updates
Fedora, RHEL family dnf upgrade --refresh --security dnf upgrade --refresh, then Flatpak updates
openSUSE Leap, SLES, SLED zypper patch --category security zypper update
openSUSE Tumbleweed zypper dup (no separate security channel) zypper dup
Arch pacman -Syu plus Flatpak updates (always everything) same
Alpine apk upgrade plus Flatpak updates (always everything) same
  • days: a window across midnight belongs to the day it starts on. Pending security updates count as handled until the next window (up to 8 days with days, 48 hours without).
  • hold also applies when mode is off. Debian family: apt-mark hold (installed packages only); Fedora family: excludepkgs in a libdnf5 drop in and in /etc/dnf/dnf.conf (dnf4), so dnf neither upgrades nor installs them; Arch: IgnorePkg in /etc/pacman.conf. Alpine refuses hold (pin versions in /etc/apk/world); SUSE ignores it. Packages removed from the list are released again; values changed by hand in dnf.conf or pacman.conf are left alone.
  • autoremove: apt-get autoremove --purge (old kernels included), dnf autoremove, pacman orphans (pacman -Qdtq). No effect on SUSE and Alpine.
  • snap_refresh (only where snapd is installed): hold stops automatic snap refreshes, window sets refresh.timer to the update window and days. Removing it restores the snapd default.
  • Restart notice and deferral (with reboot): the restart is scheduled with shutdown -r reboot_notice_minutes ahead and announced in every desktop session. With reboot_max_defers the desktop helper offers to postpone it by reboot_defer_minutes that many times; it asks again shortly before each new time. After the last deferral the restart happens. Every deferral is reported as a device event with the user name.

With rules per source and update rings:

{"window": "02:00-05:00", "reboot": true, "security_max_days": 7, "rules": [
  {"source": "os_security", "mode": "install"},
  {"source": "os_all", "mode": "install", "rings": true},
  {"source": "third_party", "mode": "install", "rings": true, "repos": ["Docker*", "google-chrome"]},
  {"source": "flatpak", "mode": "notify"}]}

What the sources cover per distribution, how they run, the update rings and the reported results are in Patch management. Flatpak is its own source now: all without rules still updates Flatpak, security never did.

The default library item "Security updates at night" sets security, 02:00-05:00, no reboot.

Field reference

Generated from the payload schema of the server (GET /api/v1/schemas/{type}), the same reference the console editor shows. Unknown fields are rejected.

com.limdm.updates

Console: Software updates. Automatic operating system updates: mode, time window, reboot.

Field Type Meaning Limits
mode string Updates one of "off" (Off), "security" (Security only), "all" (All)
window string Time window Local time as HH:MM-HH:MM, for example 02:00-04:00.
reboot boolean Reboot when required Reboot inside the window after an update that needs it.
days list of string Weekdays Empty means every day. one of "mon" (Mon), "tue" (Tue), "wed" (Wed), "thu" (Thu), "fri" (Fri), "sat" (Sat), "sun" (Sun)
hold list of string Held packages Packages that are never updated automatically.
autoremove boolean Remove unused packages After each run, old kernels included.
snap_refresh string Snap refreshes Hold stops automatic refreshes, window moves them into the update window; empty leaves snapd alone. one of "hold" (Hold), "window" (In the window)
reboot_notice_minutes integer Reboot notice (minutes) Announce the reboot this long ahead, 5 when empty, at most 120. min 0; max 120
reboot_max_defers integer Deferrals How often a user may postpone the reboot, 0 to 5. min 0; max 5
reboot_defer_minutes integer Deferral length (minutes) 15 to 480, 60 when empty. max 480
rules list of object Rules per source When present they replace the mode: each source gets its own mode, window and ring.
rules[].source string Source one of "os_security" (OS security updates), "os_all" (All OS updates), "third_party" (Third party repositories), "flatpak" (Flatpak (system))
rules[].mode string Mode Notify only reports pending updates; install installs them in the window. one of "off" (Off), "notify" (Notify), "install" (Install)
rules[].window string Time window HH:MM-HH:MM; empty uses the window above.
rules[].days list of string Weekdays Empty means every day. one of "mon" (Mon), "tue" (Tue), "wed" (Wed), "thu" (Thu), "fri" (Fri), "sat" (Sat), "sun" (Sun)
rules[].rings boolean Follow update rings Install once per wave of the device's update ring, not before.
rules[].repos list of string Repositories Third party only: dnf or zypper repo IDs, apt origins (glob). Empty is every third party repository.
security_max_days integer Security updates pending at most (days) The check updates.security_age fails after this many days, 14 when empty. min 0; max 365
Example payload
{
  "mode": "security",
  "window": "02:00-05:00",
  "reboot": false
}