# Downgrade/rollback of OneAgent

**URL:** <https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874>\
**Category:** Open Q&A\
**Tags:** installation, updates\
**Created:** [January 4, 2023, 3:46pm UTC](https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874 "2023-01-04T15:46:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crewsr](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@crewsr](https://community.dynatrace.com/u/crewsr)\
**Post date:** [January 4, 2023, 3:46pm UTC](https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874/1 "2023-01-04T15:46:42Z")

</div>

I’ve been tasked with coming up with an automation that would roll-back the current version of OneAgent (on RHEL) to a previous version.&nbsp; Is a rollback mostly a matter of running the /opt/dynatrace/oneagent/agent/uninstall.sh and then performing an installation of previous version?&nbsp; I understand that the new versions of configuration files might not be compatible with an older version of software, but I don’t really see any good way around that.

---

<div class="post-metadata">

**Author:** ![arturo\_mondelo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/arturo_mondelo/32/2566_2.png) [@arturo\_mondelo](https://community.dynatrace.com/u/arturo_mondelo)\
**Post date:** [January 5, 2023, 10:33am UTC](https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874/2 "2023-01-05T10:33:22Z")

</div>

Hi&nbsp;[@crewsr](https://community.dynatrace.com/user/48896),  
Your assumption is right. In the really rare case that a rollback is needed, the way to go is first Uninstall (with the uninstall.sh) and then install the previous version.

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [January 5, 2023, 12:26pm UTC](https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874/3 "2023-01-05T12:26:58Z")

</div>

What about process/container restarts in between? If you just uninstall + reinstall, wouldn’t you still have the new code modules injected into the application processes?

---

<div class="post-metadata">

**Author:** ![abhi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abhi/32/30657_2.png) [@abhi](https://community.dynatrace.com/u/abhi)\
**Post date:** [January 5, 2023, 11:35pm UTC](https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874/4 "2023-01-05T23:35:28Z")

</div>

Hi&nbsp;[@kalle\_lahtinen](https://community.dynatrace.com/user/25049),

You are right, you would need the process/container restart as it’s a new version of the OneAgent code module which is injected into the application processes. So using the Dynatrace UI to validate which all processes would need the restart will help the respective team to know the specific entities to restart and not the entire application.

---

<div class="post-metadata">

**Author:** ![urs\_fischer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/urs_fischer/32/7896_2.png) [@urs\_fischer](https://community.dynatrace.com/u/urs_fischer)\
**Post date:** [November 1, 2023, 7:16am UTC](https://community.dynatrace.com/t/downgrade-rollback-of-oneagent/37874/5 "2023-11-01T07:16:08Z")

</div>

There is an Product Idea that asks if it is possible to downgreade over the Plattform insted of upgrade:&nbsp;[https://community.dynatrace.com/t5/Product-ideas/OneAgent-Downgrade-instead-of-Update/idi-p/190094](https://community.dynatrace.com/post/190094)&nbsp;If you think this would be helpful, please vote 🙂
