Update and uninstall
Which version is running
Section titled “Which version is running”The dashboard shows each agent’s version, refreshed every time it registers. latest.json names the current release.
Update
Section titled “Update”The agent does not update itself. Re-run the way you installed it; the configuration is kept.
curl -fsSL https://www.infrality.io/agent/install.sh | sudo bashsudo systemctl daemon-reloadsudo systemctl restart infrality-agentWith a package, install the newer .deb or .rpm over the old one; /etc/infrality-agent/config.yaml is kept.
curl -fsSL https://www.infrality.io/agent/install.sh | sudo bashOr open the newer .pkg. Then restart the agent.
From PowerShell as Administrator, stop the agent, then:
irm https://www.infrality.io/agent/install.ps1 | iexRe-running the installer also brings an older install up to today’s privilege model: it creates the service account, fixes the ownership of the configuration and rewrites the unit.
Uninstall
Section titled “Uninstall”First delete the agent on the dashboard — that revokes the API keys bound to it — then remove it from the machine.
Installed with the script:
sudo systemctl disable --now infrality-agentsudo rm /etc/systemd/system/infrality-agent.service /usr/local/bin/infrality-agentsudo systemctl daemon-reloadsudo rm -rf /etc/infrality-agent /var/lib/infrality-agentsudo userdel infrality-agentInstalled from a package:
sudo apt remove infrality-agent # or: sudo dnf remove infrality-agentsudo rm /usr/local/bin/infrality-agentsudo rm -rf /etc/infrality-agentRemove-Item -Recurse "$env:ProgramFiles\Infrality"Remove-Item -Recurse C:\ProgramData\infrality-agentThen remove %ProgramFiles%\Infrality from the system PATH.