Update the infrastructure agent

Read on to learn how to update the infrastructure agent to the latest version for Linux and Windows servers.

View the infrastructure agent version

The infrastructure agent does not update itself automatically. Check the infrastructure agent release notes to make sure you have the latest agent version.

To view the current infrastructure agent version for a host, use any of these options:

  • Go to one.newrelic.com > Infrastructure > Settings > Agents > Agent version.
  • Go to one.newrelic.com > Infrastructure > Hosts > (select a host).
  • Create a query for SystemSample.

Update the agent for installs using the package manager

If you used the default installation process, 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.pngDebian, ubuntu iconUbuntu)

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.pngAmazon Linux, centos iconCentOS, redhat iconRHEL)

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 (suse iconSLES)

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 iconWindows 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 iconWindows 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 documentation for your tool:

Update the agent for assisted and manual tarball installs

Since there are are no automated scripts, old files may remain when you update. Be sure to manually remove outdated files.

To update the agent, download the file again and follow the installation procedure for Linux (assisted or manual) or Windows (assisted or manual). This will overwrite your old installation.

Identify outdated agent versions from the UI

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

  1. Go to one.newrelic.com > Infrastructure > 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 the 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

If you need more help, check out these support and learning resources: