# How to upgrade YugaybteDB to the latest version?

**URL:** <https://forum.yugabyte.com/t/how-to-upgrade-yugaybtedb-to-the-latest-version/772>\
**Category:** General\
**Created:** [July 19, 2020, 11:53am UTC](https://forum.yugabyte.com/t/how-to-upgrade-yugaybtedb-to-the-latest-version/772 "2020-07-19T11:53:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [July 19, 2020, 11:53am UTC](https://forum.yugabyte.com/t/how-to-upgrade-yugaybtedb-to-the-latest-version/772/1 "2020-07-19T11:53:27Z")

</div>

[Question posted by a user on [YugabyteDB Community Slack](https://www.yugabyte.com/slack) ]

I need to upgrade YugabyteDB to the latest version. How can I ?

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [July 19, 2020, 11:55am UTC](https://forum.yugabyte.com/t/how-to-upgrade-yugaybtedb-to-the-latest-version/772/2 "2020-07-19T11:55:19Z")

</div>

You can follow upgrade docs at [Upgrade a deployment | YugabyteDB Docs](https://docs.yugabyte.com/latest/manage/upgrade-deployment/).

In general, so far we have always done newer releases in such a way that it is possible to do a rolling/online upgrade of the software, one yb-master at a time and one yb-tserver at a time. It is perfectly ok for the system to be in a hybrid state where some servers are running the older version of the software and some have already been upgraded to the newer version of the software. But, as a best practice, you don’t want to run in this hybrid state with mixed versions for extended periods of time (like days) and limit the hybrid state to the upgrade phase alone.

Typically, your **–fs\_data\_dirs** (where YugabyteDB’s data files live) as well as you conf files (if you are passing the gflags from a conf file instead of the command line) are already in a separate location different than the software install directory.

So it is just a matter of starting the yb-master/yb-tserver one at a time from the new software location but reusing all the same configuration options and reusing the data in the **–fs\_data\_dirs**.

---

<div class="post-metadata">

**Author:** ![ashu0008](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/ashu0008/32/461_2.png) [@ashu0008](https://forum.yugabyte.com/u/ashu0008)\
**Post date:** [February 15, 2022, 9:44am UTC](https://forum.yugabyte.com/t/how-to-upgrade-yugaybtedb-to-the-latest-version/772/3 "2022-02-15T09:44:56Z")

</div>

I see it is in-place upgrade , how do we downgrade if case something goes wrong or if application is having issue with new version.

---

<div class="post-metadata">

**Author:** ![alex](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/alex/32/137_2.png) [@alex](https://forum.yugabyte.com/u/alex)\
**Post date:** [February 22, 2022, 6:35pm UTC](https://forum.yugabyte.com/t/how-to-upgrade-yugaybtedb-to-the-latest-version/772/5 "2022-02-22T18:35:21Z")

</div>

We do not officially support downgrades, you can ping us and we will help you on your specific case if any issues suddenly arise.  
We also have extensive tests to ensure different upgrade paths work.
