Skip to content

Patch management

How LiMDM installs updates: rules per update source, update rings with waves, what the agent reports, the fleet view of security updates and CVEs, and rollback. The declaration fields are in com.limdm.updates; the console pages are under Updates and on the device page (tab Updates).

Rules per source

com.limdm.updates has a simple mode (off, security, all) and, for finer control, rules: one rule per source with its own mode (off, notify, install), window, days and rings. When rules are present they replace mode (set mode to off or leave it empty).

Source What it is
os_security security updates of the distribution
os_all every update of the distribution (security included)
third_party vendor repositories: apt sources, dnf and zypper repositories that are not the distribution's own; repos limits it
flatpak system wide Flatpak apps and runtimes of every remote (Flathub and others)

notify installs nothing; the pending updates appear in the console. install runs once a day inside the window, or with rings once per wave (below).

The old mode maps to rules, so existing declarations keep their behaviour: security is os_security install, all is os_all, third_party and flatpak install (what all always did: apt and dnf upgraded every repository, then Flatpak).

What counts as third party

  • Debian family: the apt origin of the candidate (as apt-get -s upgrade prints it). Debian, Debian-Security, Debian Backports, Ubuntu, UbuntuESM, UbuntuESMApps, Raspbian, Raspberry Pi Foundation, linuxmint and origins that start with the os-release ID are the distribution; everything else is third party. repos matches origins (shell glob, for example Docker*).
  • Fedora and RHEL family: the dnf repo ID. fedora, updates, updates-testing, baseos, appstream, extras, crb, powertools and the like, rhel-* and Oracle's ol<N>_* are the distribution; EPEL and vendor repos are third party. repos are repo IDs (glob).
  • openSUSE Leap, SLES, SLED: zypper repo aliases repo-*, openSUSE*, SLE*, SUSE* and repositories on download.opensuse.org, cdn.opensuse.org or updates.suse.com, except OBS project repositories (/repositories/ in the URL). repos are aliases.
  • Arch, Alpine, openSUSE Tumbleweed: no third party source the agent can separate. os_all updates everything, third_party reports unsupported.

How a source is installed

Source Debian, Ubuntu Fedora, RHEL openSUSE, SLES Arch, Alpine, Tumbleweed
os_security unattended-upgrade dnf upgrade --security zypper patch --category security full upgrade (no security channel)
os_all apt-get upgrade --with-new-pkgs (apt-get dist-upgrade on Proxmox VE, Proxmox VE), or apt-get install --only-upgrade name=version for the distribution's packages when third party updates are pending dnf upgrade, or dnf upgrade --repo=<distribution repos> zypper update, or zypper update --repo <aliases> full upgrade
third_party apt-get install --only-upgrade name=version of the matching packages dnf upgrade --repo=<matching repos> zypper update --repo <matching aliases> unsupported
flatpak flatpak update --system same same same

Honest results

The agent compares the installed package versions before and after a run. A run that changed nothing is reported as no_updates, never as installed. Results per source: installed (with the number of changed packages), no_updates, failed (with the last output lines) and unsupported. The mail complaints of unattended-upgrade ("can not send mail") are filtered from the output.