Skip to content

Linux Agent Repositories

Introduction

Nanitor offers a single command to install the Nanitor Agent which is designed for convenience and to get up and running quickly. It downloads the Nanitor RPM/DEB packages from the Nanitor Hub and installs them using yum/apt and then signs up the device to the Nanitor Server. The Nanitor Agent then has functionality to keep the Nanitor Agent up to date.

Some customers will want to use package repositories instead which Nanitor provides for yum and apt package managers. This document describes how to add them and use them.

Configure RedHat repository

For RHEL systems we have yum.nanitor.com which has signed packages for 64 bit systems.

To install the repository on the system and import our public key:

rpm --import https://yum.nanitor.com/nanitor-agent/RPM-GPG-KEY-nanitor
curl -so /etc/yum.repos.d/nanitor-agent.repo https://yum.nanitor.com/nanitor-agent/nanitor-agent.repo

Then to install the Nanitor Agent:

yum -y install nanitor-agent

For RHEL both the rpm packages and the repository metadata are signed.

Configure Debian repository

For Debian systems we have deb.nanitor.com which has packages for Debian based systems (including Ubuntu).

To install the repository on the system and import our public key:

apt -y install gpg wget
wget -qO - https://deb.nanitor.com/nanitor-agent/DEB-GPG-KEY-nanitor | gpg --dearmor -o /usr/share/keyrings/nanitor.gpg
echo 'deb [signed-by=/usr/share/keyrings/nanitor.gpg] https://deb.nanitor.com/nanitor-agent bookworm main' > /etc/apt/sources.list.d/nanitor-agent.list

Then to install the Nanitor Agent:

apt -y install nanitor-agent

Post-install

After the packages have been installed you can finish the agent configuration and sign up to the Nanitor Server. This assumes you have your SIGNUP_URL ready and replace in the command with yours.

/opt/nanitor-agent/bin/nanitor-agent signup --key "https://SIGNUP_URL"
systemctl restart nanitor-agent

Now the Nanitor Agent should be up and running.

systemctl status nanitor-agent