User guideAgentsUpdated

Install the agent on macOS

You need an enrollment token. The portal shows the command below with your address and token filled in; copy it from there.

Install

In Terminal, as an administrator:

sh
curl -fsSL -A remediforge-installer https://YOUR-PORTAL/install-macos.sh | sudo REMEDIFORGE_ENROLLMENT_TOKEN='ppe_…' sh -s -- --server https://YOUR-PORTAL

The installer:

  1. downloads the agent for the Mac's processor (Intel or Apple silicon) from your portal and checks that it is genuine;
  2. installs it to /opt/remediforge/bin/remediforge-agent;
  3. asks whether to install the Mac app updater, if the Mac has none (see below);
  4. starts it as the launchd daemon com.remediforge.agent, which also starts at boot;
  5. waits up to 60 seconds for the Mac to enroll, then deletes the token.

What gets updated

  • macOS updates, from Apple.
  • Applications dragged into Applications (Chrome, Zoom, Slack, Spotify, iTerm2 and about 2,800 others), from RemediForge's app catalogue. The app updater is not needed for these.
  • Command-line packages, where the Mac app updater is installed.

The app updater question

The Mac app updater is only needed for command-line packages (Node.js, Python, OpenSSL and others) and for the few applications that come with their own installer. If the Mac does not have it, the installer asks:

text
remediforge: install the Mac app updater on this Mac? [Y/n]
  • Yes: the installer installs it (this can take several minutes). It belongs to the person signed in at the Mac; if nobody is, to the account that ran sudo.
  • No: applications are still updated as above; only command-line packages are not.

macOS updates come from Apple either way. If the app updater cannot be installed, the agent is still installed and runs without it.

Installing without anyone to answer

For scripted installs (MDM, remote scripts), answer in advance, and choose the account if nobody will be signed in:

sh
curl -fsSL -A remediforge-installer https://YOUR-PORTAL/install-macos.sh | sudo REMEDIFORGE_APP_UPDATER=install REMEDIFORGE_APP_UPDATER_USER=jane REMEDIFORGE_ENROLLMENT_TOKEN='ppe_…' sh -s -- --server https://YOUR-PORTAL

With no answer and nobody at the keyboard, the installer chooses skip. On a Mac with Apple silicon, add REMEDIFORGE_MAC_UPGRADE_POPUP=yes (or no) the same way to decide whether the person signed in may be asked for a password in a window; a password for macOS upgrades can only be kept by running the installer from a terminal, or later with sudo /opt/remediforge/bin/remediforge-agent mac-upgrade-login. Running the installer again keeps the earlier answer unless you set REMEDIFORGE_APP_UPDATER again, so the same command with REMEDIFORGE_APP_UPDATER=install installs the app updater on a Mac that said no before.

macOS updates and upgrades on Apple silicon

A Mac with Apple silicon installs macOS updates, and a new macOS release (Upgrade macOS on the device page), only with the password of an administrator who can unlock its disk. Give RemediForge one of two ways:

  • Keep one on the Mac. In Terminal on the Mac:

    bash
    sudo /opt/remediforge/bin/remediforge-agent mac-upgrade-login

    Type the administrator's short name and password. They stay in the Mac's System keychain and are never sent anywhere. The installer offers this itself on a Mac with Apple silicon: run it with sudo from the administrator's account and answer the question (the password of the account that ran it is what is kept). To answer in advance, put REMEDIFORGE_MAC_UPGRADE_LOGIN=yes (or no) after sudo, as in the scripted-install example below. To remove it: ... mac-upgrade-login --forget.

  • Let the person at the Mac approve it. Without a kept password, the person signed in sees a RemediForge window asking for their password to start. They can choose Later; the job then fails and can be run again. The installer also asks whether this window may be used on this Mac (REMEDIFORGE_MAC_UPGRADE_POPUP=yes or no, after sudo, answers in advance; the answer is kept when the installer runs again); with no and no kept password, the upgrade fails with a message that says so.

Intel Macs need neither. An upgrade downloads more than 15 GB and the Mac restarts by itself to install it; the job finishes once the Mac runs the new release.

What the portal sees

The agent lists the Mac's applications and its command-line packages, and the device's Installed packages tab shows them. A newer version of an application is offered as an update and installed only if it comes from the same developer as the copy on the Mac. Common applications (Chrome, Firefox, Zoom, VS Code, VLC and others) and command-line packages (Node.js, OpenSSL, Python, PHP, PostgreSQL, curl, Git and others) are checked for known vulnerabilities. Apple's own applications and App Store applications are updated by macOS and the App Store.

Macs enrolled before 30 September 2026 need an agent upgrade from the Agents page before their applications appear.

When a patch job fails

In the job's log What it means
"macOS could not be downloaded" / "did not download from Apple" The Mac could not finish downloading from Apple. The agent refreshes Apple's list and tries once more by itself. If it still fails, check that the Mac reaches swcdn.apple.com and swdist.apple.com with no proxy or web filter in the way, then run the job again
"The following directories are not writable by your user", "Permission denied", "is not writable" Something run with sudo (often pip or npm) left a folder owned by root. The agent repairs this inside the app updater's folders by itself; a folder elsewhere has to be given back to its owner by hand
"You are using macOS on Intel x86_64 … Tier 3" No ready-made packages exist for Intel Macs any more, so every command-line package update is compiled on the Mac. Sixty packages can take several hours. Keep the Mac on power
"sudo was stopped after 4h0m0s" (or "timed out") after the package lines The compile took longer than that. Run the job again: what was already upgraded is skipped. On an Intel Mac, consider leaving large packages (MySQL, Node, Python) out of the job
"… is downloaded and installs when the Mac restarts for it" macOS updates are downloaded by the job and installed by a restart. With Reboot: If required, the agent has softwareupdate restart the Mac and the update installs; the job finishes once the Mac is back. With Never, the device stays Reboot pending: use Restart Now in System Settings → General → Software Update. A restart from the Apple menu does not install it

The agent keeps the Mac awake while it installs. A laptop on battery with its lid closed still sleeps, and the job pauses until it wakes.

On Apple silicon, macOS asks for an administrator's password to install a macOS update, which the agent does not have. There the update is downloaded, and someone has to press Restart Now in Software Update. A job that only downloaded a macOS release says so at its end ("... macOS release(s) downloaded and installing at the next restart") instead of counting it as upgraded: the release installs when the Mac restarts, either through a job with Reboot: If required or with Restart Now.

Behind Cloudflare

If the command prints a page that starts with "Just a moment...", Cloudflare is stopping the request before it reaches RemediForge. Ask whoever manages the Cloudflare zone to add a rule (Security, WAF, Custom rules): User Agent contains remediforge, action Skip. The installer's commands already send that name. Another way is to install through a patch cache, which does not go through Cloudflare's check.

Checking the agent

sh
sudo launchctl print system/com.remediforge.agent
tail -f /var/log/remediforge-agent.log

If it does not enroll

Message What to do
"download failed: is … reachable from this host?" The Mac cannot reach your portal on port 443
"the agent did not enrol within 60s" Check /var/log/remediforge-agent.log and Enrollment attempts in the portal
"this installer is for macOS; on Linux use install.sh" You ran the macOS command on Linux; use the Linux command

Next

Install the agent on macOS | RemediForge