# How to upgrade from Elastic Stack 8 to 9.1?

**URL:** <https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383>\
**Category:** Elasticsearch\
**Created:** [May 21, 2025, 12:48pm UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383 "2025-05-21T12:48:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [May 21, 2025, 12:48pm UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/1 "2025-05-21T12:48:46Z")

</div>

Hello

There isnt a clear guide (like other versions) on how to upgrade from Elastic Stack 8 (8.18) to Elastic Stack 9 (9.1).

What is the best procedure on doing this? Im using Debian and I rather do it all thru apt-get

Thanks

---

<div class="post-metadata">

**Author:** ![akashsingh-aps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akashsingh-aps/32/143265_2.png) [@akashsingh-aps](https://discuss.elastic.co/u/akashsingh-aps)\
**Post date:** [May 21, 2025, 1:00pm UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/2 "2025-05-21T13:00:56Z")

</div>

The official upgrade guide is here: [Upgrade your deployment or cluster | Elastic Docs](https://www.elastic.co/docs/deploy-manage/upgrade/deployment-or-cluster)

---

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [May 21, 2025, 2:10pm UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/3 "2025-05-21T14:10:53Z")

</div>

It says nothing about what to add in sources.list in debian to upgrade 8.x to 9.1

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [May 21, 2025, 5:36pm UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/4 "2025-05-21T17:36:27Z")

</div>

> **[Install Elasticsearch with a Debian package | Elastic Docs](https://www.elastic.co/docs/deploy-manage/deploy/self-managed/install-elasticsearch-with-debian-package)**
>
> The Debian package for Elasticsearch can be downloaded from our website or from our APT repository. It can be used to install Elasticsearch on any Debian-based...

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [May 22, 2025, 4:52pm UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/5 "2025-05-22T16:52:38Z")

</div>

Just by coincidence did that upgrade today.

```auto
$ sudo systemctl stop elasticsearch
$ sudo mv /etc/apt/sources.list.d/elastic-8.x.list /etc/apt/sources.list.d/elastic-9.x.list
$ sudo vi /etc/apt/sources.list.d/elastic-9.x.list
$ sudo cat /etc/apt/sources.list.d/elastic-9.x.list
deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/9.x/apt stable main
# I changed /8.x/ to /9.x/, renamed file just for clarity
$ sudo apt update
$ sudo apt upgrade
$ sudo systemctl start elasticsearch

```

rolling upgrade, data nodes first, then my 3 masters.

I was on 8.18.1 before, one should be on 8.latest before going to 9.something

Also dont forget to check the Upgrade Assistant before upgrading.

---

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [May 23, 2025, 11:06am UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/6 "2025-05-23T11:06:18Z")

</div>

> $ sudo mv /etc/apt/sources.list.d/elastic-8.x.list /etc/apt/sources.list.d/elastic-9.x.list

OK, so you just killed the 8.x repo and made the 9.x repo.....And upgraded like that....

That note (upgrading from 8 to 9) should be included in the doc and how to do it exactly.

Also its a all-in-one node: Has Elastic, Kibana, Logstash, Beats, etc...

---

<div class="post-metadata">

**Author:** ![bfontaine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bfontaine/32/147750_2.png) [@bfontaine](https://discuss.elastic.co/u/bfontaine)\
**Post date:** [June 29, 2026, 10:10am UTC](https://discuss.elastic.co/t/how-to-upgrade-from-elastic-stack-8-to-9-1/378383/7 "2026-06-29T10:10:24Z")

</div>

You don’t even need to kill the 8.x repo, so the official docs are correct: if you want to upgrade to 9.x, follow the docs to install 9.x.
