---
isPrivate: true
title: Downgrade the Agent to a Prior Minor Version
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Agent > Agent FAQ > Downgrade the Agent to a Prior Minor Version
---

# Downgrade the Agent to a Prior Minor Version

For DEB or RPM packages of the Datadog Agent, find the instructions below to downgrade the Datadog Agent to a prior minor version.

To downgrade the Datadog Agent to a prior major version, follow the instructions on the [dedicated page](https://docs.datadoghq.com/agent/faq/agent-downgrade-major/).

**Notes**:

- These instructions only work for Datadog Agent version 6.x and above.
- The instructions below for configuration management tools only work with the latest major version of these tools: v4.x for the Chef cookbook, v3.x for the Puppet module, and v4.x for the Ansible role. If you are using a prior version, see the documentation for that version on the tools' repositories: [Chef cookbook v3.x](https://github.com/DataDog/chef-datadog/tree/3.x), [Puppet module v2.x](https://github.com/DataDog/puppet-datadog-agent/tree/2.x), or [Ansible role v3.x](https://github.com/DataDog/ansible-datadog/tree/3.x).

## Debian/Ubuntu{% #debianubuntu %}

### CLI{% #cli %}

```shell
sudo apt-get update && sudo apt-get install --allow-downgrades datadog-agent=1:X.Y.Z-1
```

**Note**: If the option `--allow-downgrades` doesn't exist for your apt version, you can use `--force-yes` instead.

### Configuration management tools{% #configuration-management-tools %}

{% tab title="Chef" %}

```rb
node["datadog"]["agent_version"] = "1:X.Y.Z-1"
node["datadog"]["agent_package_action"] = "install"
node["datadog"]["agent_allow_downgrade"] = true
```

{% /tab %}

{% tab title="Puppet" %}

```
class { 'datadog_agent':
      ...
      agent_version => "1:X.Y.Z-1",
}
```

{% /tab %}

{% tab title="Ansible" %}
Add the following attributes in your playbook:

```yaml
datadog_agent_version: "1:X.Y.Z-1"
datadog_agent_allow_downgrade: yes
```

{% /tab %}

## RHEL/CentOS/Amazon Linux{% #rhelcentosamazon-linux %}

### CLI{% #cli-1 %}

```shell
sudo yum clean expire-cache metadata && sudo yum downgrade datadog-agent-X.Y.Z-1
```

### Configuration management tools{% #configuration-management-tools-1 %}

{% tab title="Chef" %}
Set the following attributes on your nodes:

```rb
node["datadog"]["agent_version"] = "X.Y.Z-1"
node["datadog"]["agent_package_action"] = "install"
node["datadog"]["agent_allow_downgrade"] = true
```

{% /tab %}

{% tab title="Puppet" %}

```
class { 'datadog_agent':
      ...
      agent_version => "X.Y.Z-1",
}
```

{% /tab %}

{% tab title="Ansible" %}
Add the following attributes in your playbook (on CentOS, this only works with Ansible 2.4+):

```yaml
datadog_agent_version: "X.Y.Z-1"
datadog_agent_allow_downgrade: yes
```

{% /tab %}

## SUSE{% #suse %}

### CLI{% #cli-2 %}

```shell
sudo zypper --no-gpg-check refresh datadog && sudo zypper install --oldpackage datadog-agent-1:X.Y.Z-1
```

### Configuration management tools{% #configuration-management-tools-2 %}

{% tab title="Chef" %}
Set the following attributes on your nodes:

```rb
node["datadog"]["agent_version"] = "1:X.Y.Z-1"
node["datadog"]["agent_package_action"] = "install"
node["datadog"]["agent_allow_downgrade"] = true
```

{% /tab %}

{% tab title="Puppet" %}
Datadog's module doesn't support SUSE.
{% /tab %}

{% tab title="Ansible" %}
Add the following attributes in your playbook:

```yaml
datadog_agent_version: "1:X.Y.Z-1"
datadog_agent_allow_downgrade: yes
```

{% /tab %}
