Update the Infrastructure agent

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

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

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, 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:

Update the agent for assisted and manual installations

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 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: