---
title: Update the Ruby agent
source: https://docs.newrelic.com/docs/apm/agents/ruby-agent/installation/update-ruby-agent
---

To take full advantage of New Relic's latest features, enhancements, and important security patches, we recommend you update your Ruby agent to the latest version. For additional information about specific agent updates, refer to the [Ruby agent release notes](https://docs.newrelic.com/docs/release-notes/agent-release-notes/ruby-release-notes).

## Verify your Ruby agent versions [#determine-versions]

To determine which Ruby agent versions your apps currently use:

1.  In New Relic, from the [user menu](https://docs.newrelic.com/docs/accounts/accounts-billing/general-account-settings/intro-account-settings), select **Account settings > Connected agents**.
2.  Optional: Sort by **Oldest agent version**.

## Update the agent [#Updating_the_Agent]

To update the Ruby agent:

-   Using Bundler: Run this command:

    ```sh
    bundle update newrelic_rpm
    ```
-   Not using Bundler: Run this command:

    ```sh
    gem update newrelic_rpm
    ```

## Update unsupported agent versions [#eol-update]

> #### ⚠️ IMPORTANT
>
> If you are updating from an older agent version, including major version jumps, review the following list for changes in functionality.

| Migration            | Comments                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| From version 7 to 8  | Release notes: [Ruby agent 8.0.0](https://docs.newrelic.com/docs/release-notes/agent-release-notes/ruby-release-notes/ruby-agent-800) Please see our [Ruby agent 7.x to 8.x migration guide](https://docs.newrelic.com/docs/apm/agents/ruby-agent/getting-started/migration-8x-guide/) for helpful strategies and tips for migrating from earlier versions of the Ruby agent to 8.0.0. We cover new configuration defaults, changes to the `add_method_tracer` API and deprecated items and their replacements in this guide. - Changes to the `add_method_tracer` API method - Distributed Tracing is enabled by default - Cross Application Tracing is deprecated - Removed deprecated API methods and legacy instrumentation |
| From version 6 to 7  | Release notes: [Ruby agent 7.0.0](https://docs.newrelic.com/docs/release-notes/agent-release-notes/ruby-release-notes/ruby-agent-700) Please see our [Ruby agent 6.x to 7.x migration guide](https://docs.newrelic.com/docs/agents/ruby-agent/getting-started/migration-7x-guide/) for helpful strategies and tips for migrating from earlier versions of the Ruby agent to 7.0.0. We cover new configuration settings, diagnosiing and installing SSL CA certificates and deprecated items and their replacements in this guide. - Ruby 2.0 and 2.1 dropped - Implemented prepend auto-instrumentation strategies for most Ruby gems/libraries - Removed SSL cert bundle - Removed various deprecated config options           |
| From version 5 to 6  | Release notes: [Ruby agent 6.0.0.351](https://docs.newrelic.com/docs/release-notes/agent-release-notes/ruby-release-notes/ruby-agent-600351) With the addition of the Tracer API for flexible custom instrumentation, several APIs were deprecated. If used, they need to be updated. For more information, see [Ruby custom instrumentation](https://docs.newrelic.com/docs/agents/ruby-agent/api-guides/ruby-custom-instrumentation).                                                                                                                                                                                                                                                                                         |
| From version 4 to 5  | Release notes: [Ruby agent 5.0.0.342](https://docs.newrelic.com/docs/release-notes/agent-release-notes/ruby-release-notes/ruby-agent-500342) SSL connections to New Relic are now mandatory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| From version 3 to 4  | Release notes: [Ruby agent 4.0.0.332](https://docs.newrelic.com/docs/release-notes/ruby-agent-400332) The agent no longer supports Ruby versions prior to 2.0, JRuby 1.7 and earlier, and all versions of Rubinius.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Deprecated API calls | For a list of deprecated API calls and their replacements, see [Update deprecated API calls](https://docs.newrelic.com/docs/agents/ruby-agent/troubleshooting/update-deprecated-api-calls).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
