The quickest way to get started with our infrastructure agent  is through our guided install . If you're in the EU, try our EU guided install.
Step-by-step instructions  You can install the agent manually. Before installing infrastructure, be sure to:
To install infrastructure in Linux, follow these instructions:
Create the configuration file and add your license key :
$ echo   "license_key: YOUR_LICENSE_KEY"   |   sudo   tee   -a  /etc/newrelic-infra.yml 
Determine the distribution version number:
Enable New Relic's GPG key:
  Debian$ curl   -fsSL  https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg  |   sudo  gpg  --dearmor   -o  /etc/apt/trusted.gpg.d/newrelic-infra.gpg 
  Ubuntu$ curl   -fsSL  https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg  |   sudo  gpg  --dearmor   -o  /etc/apt/trusted.gpg.d/newrelic-infra.gpg 
  SLES$ curl  https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg  -s   |   sudo  gpg  --import 
Important There's a known issue with zypper package manager where GPG keys may not be validated as expected in older SLES versions. If you get errors such as Signature verification failed, update your infrastructure agent to version 1.44.0 or higher.
Add the infrastructure agent repository:
  DebianDebian 11 ("Bullseye") 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt bullseye main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Debian 12 ("Bookworm") 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt bookworm main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Debian 13 ("trixie") 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt trixie main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
  UbuntuUbuntu 18.04 LTS (Bionic Beaver) 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt bionic main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Ubuntu 20.04 LTS (Focal Fossa) 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt focal main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Ubuntu 20.10 (Groovy Gorilla) 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt groovy main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Ubuntu 21.04 (Hirsute Hippo) 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt hirsute main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Ubuntu 22.04 (Jammy Jellyfish) 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt/ jammy main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
Ubuntu 24.04 (Noble Numbat) 
$ echo   "deb https://download.newrelic.com/infrastructure_agent/linux/apt/ noble main"   |   sudo   tee   -a  /etc/apt/sources.list.d/newrelic-infra.list 
  Amazon LinuxAmazon Linux 2 (x86) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/x86_64/newrelic-infra.repo 
Amazon Linux 2 (arm64) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/aarch64/newrelic-infra.repo 
Amazon Linux 2023 (x86) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2023/x86_64/newrelic-infra.repo 
Amazon Linux 2023 (arm64) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2023/aarch64/newrelic-infra.repo 
  CentOS /   Rocky Linux /   RHEL/   AlmaLinux & Oracle LinuxCentOS, RHEL, Oracle Linux 7.x (x86) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo 
CentOS RHEL, Oracle Linux 7.x (arm64) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/aarch64/newrelic-infra.repo 
CentOS, RHEL, RockyLinux, AlmaLinux, and Oracle Linux 8.x (x86) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/x86_64/newrelic-infra.repo 
CentOS, RHEL, RockyLinux, AlmaLinux, and Oracle Linux 8.x (arm64) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/aarch64/newrelic-infra.repo 
RockyLinux, AlmaLinux and RHEL 9.x (x86) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/9/x86_64/newrelic-infra.repo 
RockyLinux, AlmaLinux and RHEL 9.x (arm64) 
$ sudo   curl   -o  /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/9/aarch64/newrelic-infra.repo 
  SLESSLES 12.5 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.5/x86_64/newrelic-infra.repo 
SLES 12.5 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.5/aarch64/newrelic-infra.repo 
SLES 15.2 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.2/x86_64/newrelic-infra.repo 
SLES 15.2 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.2/aarch64/newrelic-infra.repo 
SLES 15.3 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.3/x86_64/newrelic-infra.repo 
SLES 15.3 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.3/aarch64/newrelic-infra.repo 
SLES 15.4 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.4/x86_64/newrelic-infra.repo 
SLES 15.4 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.4/aarch64/newrelic-infra.repo 
SLES 15.5 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.5/x86_64/newrelic-infra.repo 
SLES 15.5 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.5/aarch64/newrelic-infra.repo 
SLES 15.6 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.6/x86_64/newrelic-infra.repo 
SLES 15.6 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.6/aarch64/newrelic-infra.repo 
SLES 15.7 (x86) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.7/x86_64/newrelic-infra.repo 
SLES 15.7 (ARM) 
$ sudo   curl   -o  /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.7/aarch64/newrelic-infra.repo 
Refresh the repositories:
Install the newrelic-infra package in root (default), privileged user, or unprivileged user mode. For more information on each running mode, see Linux agent running modes .
Root (default)   Debian and   Ubuntu :
$ sudo   apt-get   install  newrelic-infra  -y 
  Amazon Linux,   CentOS,   Rocky Linux,   RHEL,   AlmaLinux & Oracle Linux :
$ sudo  yum  install  newrelic-infra  -y 
  SLES :
$ sudo   zypper   -n   install  newrelic-infra 
Privileged user Install the libcap library and set the NRIA_MODE  environment variable to PRIVILEGED.
  Debian and   Ubuntu :
$ sudo   apt-get   install  libcap2-bin 
$ sudo   NRIA_MODE = "PRIVILEGED"   apt-get   install  newrelic-infra 
  Amazon Linux,   CentOS,   Rocky Linux,   RHEL,   AlmaLinux & Oracle Linux :
$ sudo   NRIA_MODE = "PRIVILEGED"  yum  install  newrelic-infra 
  SLES :
$ sudo   zypper   install  libcap-progs 
$ sudo   NRIA_MODE = "PRIVILEGED"   zypper   install  newrelic-infra 
Unprivileged user Install the libcap library and set the NRIA_MODE  environment variable to UNPRIVILEGED.
  Debian and   Ubuntu :
$ sudo   apt-get   install  libcap2-bin 
$ sudo   NRIA_MODE = "UNPRIVILEGED"   apt-get   install  newrelic-infra 
  Amazon Linux,   CentOS,   Rocky Linux,   RHEL,   AlmaLinux & Oracle Linux :
$ sudo   NRIA_MODE = "UNPRIVILEGED"  yum  install  newrelic-infra 
  SLES :
$ sudo   zypper   install  libcap-progs 
$ sudo   NRIA_MODE = "UNPRIVILEGED"   zypper   install  newrelic-infra 
Once the infrastructure agent is installed or updated, you can start, stop, or check the agent status .
Update the agent  Follow standard procedures to update the infrastructure agent .
If you are using sudo to install or update the agent, use the -E argument to allow bypassing the environment variables, or specify the NRIA_MODE  environment variable just after sudo.
$ export   NRIA_MODE = "SET_MODE_HERE" 
Or
$ sudo   -E  YOUR_PACKAGE_MANAGER_UPDATE_COMMAND 
What's next?  Generate some traffic and wait a few minutes, then view your hosts in the New Relic UI . If necessary, follow our troubleshooting procedures if no data appears .
Important The hostname for your server cannot be localhost. Data will not be reported for servers with that name. Make sure the host name uses a unique name .
The only required configuration option  is the license_key  setting, which is created as part of the installation procedures. You may also want to:
Did this doc help with your installation?