Docs › Deploy the Linux agent

Deploy the Linux agent

apt, yum, dnf supported. systemd or cron service.

Get an enrolment token

From the admin console: Settings > API Keys > Create. The token is prefixed ppk_.

One-liner install

On the target host, as root:

curl -fsSL https://patchpilot.co.uk/downloads/install-linux.sh \
  | sudo bash -s -- \
      --host https://patchpilot.co.uk \
      --api-key ppk_your_token

The installer:

The script must run as root because it writes to /etc/ and registers a system service. Pipe through sudo bash, not bare bash.

Verify enrolment

Check the systemd unit:

systemctl status patchpilot-agent
journalctl -u patchpilot-agent -n 50

You should see successful check-in lines. The device will appear in Devices in the admin console within ~60 seconds.

What's collected

Manual install (no internet from the host)

If the target host can't reach the internet at install time, download the agent script and config separately on a connected jump-host and copy them over:

# From a connected machine
curl -fsSL https://patchpilot.co.uk/downloads/patchpilot-agent-linux.sh \
  -o patchpilot-agent
chmod +x patchpilot-agent

# Copy patchpilot-agent + an /etc/patchpilot/config.json onto the target,
# then enable the systemd unit manually.

The shape of /etc/patchpilot/config.json:

{
  "host": "https://patchpilot.co.uk",
  "token": "ppdt_..."
}

Uninstall

sudo systemctl stop patchpilot-agent
sudo systemctl disable patchpilot-agent
sudo rm /etc/systemd/system/patchpilot-agent.service
sudo rm -rf /etc/patchpilot /usr/local/bin/patchpilot-agent
sudo systemctl daemon-reload
Previous← Windows agent NextmacOS agent →

Last updated: 2026-04-26 · Back to Docs