Keep the client up to date

How automatic updates work on each platform, the network settings that control them, updating by hand, and release channels.

Updated · ·By Ivan Vyshniak

Showing Windows instructions.

This page changes with your operating system.

The client updates itself unless the network's Auto-update setting is turned off. You can also update a device by hand at any time with peerlify update.

Automatic updates

Windows

Two scheduled tasks run peerlify update as SYSTEM:

  • Peerlify\PeerlifyAutoUpdate, once a day, at the time of day the client was installed or last upgraded, or at the network's Preferred update time.
  • Peerlify\PeerlifyUpdateOnBoot, two minutes after the computer starts.

Each run downloads the newest stable package and installs it in the background. The service restarts on the new version. The tray app closes during an upgrade; start it again from the Start menu.

You can also check now with Settings… → General → Check for Updates in the tray menu. It can't start while your network's admin has automatic updates turned off.

macOS

The Peerlify service checks for updates one minute after it starts, every day at 03 local time (or the network's Preferred update time), and after waking from sleep if it missed a check.

When an update is available, the Peerlify app downloads and installs it, then shows Restart to Finish Updating in its menu and an Update ready notification. If the app doesn't install it within 10 minutes, for example because nobody is signed in, the service installs it itself.

Before installing, the update is checked against its published checksum, its code signature (Peerlify's Apple developer team), and macOS Gatekeeper.

You can also check now with Settings… → General → Check for Updates….

Linux

The systemd timer peerlify-update.timer runs the package manager once a day, between 00 and 00 local time, and 2 to 32 minutes after boot:

  • apt: apt-get install --only-upgrade peerlify
  • dnf, yum or zypper: the equivalent upgrade.

The service restarts after the upgrade. Packages come from Peerlify's signed repository. Check past runs with journalctl -u peerlify-update.

Tarball installs have no timer and don't update automatically. Re-run the installer to upgrade:

shell
curl -fsSL https://pkgs.peerlify.net/install.sh | sudo FALLBACK_TARBALL=1 sh

Network settings

In Settings → Device Management (Owner or Admin):

  • Auto-update (on by default): turning it off stops the automatic updates above on every device in the network within about 10 seconds. peerlify update still works.
  • Preferred update time: a time and time zone for the daily update. Applies on Windows and macOS. On Linux the timer's own schedule is used.

Update by hand

Windows

From an elevated PowerShell or Command Prompt:

powershell
peerlify update

The command starts the installer in the background and returns immediately.

macOS
shell
sudo peerlify update

The command waits until the update is installed and the service has restarted, up to 15 minutes.

Linux
shell
sudo peerlify update

This runs the same package-manager upgrade as the timer.

Check without installing (no administrator rights needed):

shell
peerlify update --check

Versions have four parts, such as 2.7.1.173. A version that differs only in the last part is the same release and is skipped; use --force to install it anyway (Windows and macOS). See the CLI reference for all options.

The Update button in the console

When Auto-update is off, the Devices page shows an Update button for out-of-date devices. The button doesn't reliably update devices yet. To update a device, run peerlify update on it.

Release channels

There are two channels: stable (the default) and unstable, which receives releases before stable. Only Macs can follow the unstable channel automatically:

shell
peerlify configure --update-channel=unstable

The setting takes effect at the next check. On Windows and Linux, automatic updates always use stable; on Windows, peerlify update --channel unstable installs the current unstable build once, if one is published. peerlify status on a Mac shows the channel in use.

Next steps

Was this page helpful?