Update the Infrastructure agent

This document explains how to update the Infrastructure agent's latest version for Linux and Windows servers.

Update the agent

The Infrastructure agent does not update itself automatically. To make sure you have the latest agent version, see the Infrastructure agent release notes. Then, to update the agent, use your package manager to update the program and its dependencies to the latest version. Here are examples for some common systems:

Update using apt (Debian, Ubuntu)

To manually update the Infrastructure agent with apt-get:

sudo apt-get update && sudo apt-get install --only-upgrade newrelic-infra -y
Update using yum (Amazon Linux, CentOS, RHEL)

To manually update the Infrastructure agent with yum:

sudo yum update newrelic-infra -y

After updating you may need to start the agent.

Update using Zypper (SLES)

To manually update the Infrastructure agent with Zypper:

sudo zypper -n update newrelic-infra

After updating you may need to start the agent.

Update on Windows Server (32 bits)

To manually update the Infrastructure agent on Windows Server:

  1. Download the latest .MSI installer image from https://download.newrelic.com/infrastructure_agent/windows/386/newrelic-infra-386.msi
  2. Run the install script. To install from the Windows command prompt, run:

    msiexec.exe /qn /i PATH\TO\newrelic-infra-386.msi
    

After updating you may need to start the agent.

Update on Windows Server (64 bits)

To manually update the Infrastructure agent on Windows Server:

  1. Download the latest .MSI installer image from https://download.newrelic.com/infrastructure_agent/windows/newrelic-infra.msi
  2. Run the install script. To install from the Windows command prompt, run:

    msiexec.exe /qn /i PATH\TO\newrelic-infra.msi
    

After updating you may need to start the agent.

Update with config management tools

To update the Infrastructure agent using your configuration management tool, see the Infrastructure documentation for your tool:

Identify outdated agent versions from UI

You can use the Infrastructure UI to search for outdated agent versions:

  1. Go to infrastructure.newrelic.com > Inventory.
  2. In the search bar, type newrelic-infra.
  3. Select a group's dropdown to see the agent versions for that group.

To manually check Infrastructure agent versions, you can log onto a server and run newrelic-infra --version, or the applicable command for your package manager.

For more help

Recommendations for learning more: