# Agent

{% hint style="info" %}
Platform and agents can be upgraded separately.&#x20;

A new platform is compatible with old and new agent versions, ensuring smooth operation both ways.
{% endhint %}

## Download File

| Date       | Latest available agent version |                                                                                               |
| ---------- | ------------------------------ | --------------------------------------------------------------------------------------------- |
| 2026-02-02 | **3.9.1**                      | [Release Notes](https://docs.datasentinel.io/manual/implementation/agent-usage/release-notes) |

*The file size is approximately 35 MB.*

Download the latest version corresponding to your OS version

* [RedHat/Rocky linux/AlmaLinux 9](https://app.datasentinel.io/ds-api/download/datasentinel-agent-rhel9-latest.tar.gz)
* [RedHat/Rocky linux/AlmaLinux 8](https://app.datasentinel.io/ds-api/download/datasentinel-agent-rhel8-latest.tar.gz)
* [RedHat/Centos 7](https://app.datasentinel.io/ds-api/download/datasentinel-agent-rhel7-latest.tar.gz)
* [Debian Bullseye](https://app.datasentinel.io/ds-api/download/datasentinel-agent-debian-buster-latest.tar.gz)

## Agent Upgrade

Actions

* Stop the agent
* Remove the old directory
* Uncompress the new version
* Restart the agent

Example

```bash
cd <<PARENT_DIRECTORY>>
alias datasentinel='DATASENTINEL_PATH=`pwd`/datasentinel; $DATASENTINEL_PATH/datasentinel'
datasentinel stop agent
rm -fr datasentinel/
tar xvzf /tmp/datasentinel-agent-rhel9-latest.tar.gz
datasentinel start agent
datasentinel status agent
```

{% hint style="info" %}
The current configuration is kept.

The agent stores its configuration on the hidden directory `.datasentinel` located in the user’s home directory
{% endhint %}
