# Install Previous Versions from Apt-Get Repositories?

**URL:** <https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441>\
**Category:** Elasticsearch\
**Created:** [January 3, 2017, 2:35pm UTC](https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441 "2017-01-03T14:35:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameswatson3](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jameswatson3](https://discuss.elastic.co/u/jameswatson3)\
**Post date:** [January 3, 2017, 2:35pm UTC](https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441/1 "2017-01-03T14:35:39Z")

</div>

I need to add a node to my cluster but see that the version available from the apt-get respository (I'm using Ubuntu 16.04) defaults to the current version 5.1.1. I've tried using:

apt-get install elasticsearch=5.0.0 but it reports no such version is available.

apt-cache policy elasticsearch confirms this.

Any suggestions for how to get a specific, non-current version of elasticsearch on a cluster node? I would really like to use apt-get/respository rather than extracting from the tar.gz if possible.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [January 3, 2017, 5:32pm UTC](https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441/2 "2017-01-03T17:32:23Z")

</div>

I'm sorry that you're running into this, but this is a known issue: [https://github.com/elastic/elasticsearch/issues/21943](https://github.com/elastic/elasticsearch/issues/21943)

You can [download](https://www.elastic.co/downloads/past-releases/elasticsearch-5-0-0) the previous deb distribution, but at this time installing from the repository will not be possible. Also, even if you can't upgrade to 5.1.1 at this time, I recommend that you at least go to 5.0.2 as there are important bug fixes in 5.0.1 and 5.0.2. 🙂

---

<div class="post-metadata">

**Author:** ![jameswatson3](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jameswatson3](https://discuss.elastic.co/u/jameswatson3)\
**Post date:** [January 4, 2017, 2:46am UTC](https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441/3 "2017-01-04T02:46:12Z")

</div>

Jason,

Thank you so much. The .deb location is exactly what I was looking for but not finding.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [January 4, 2017, 5:01am UTC](https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441/4 "2017-01-04T05:01:57Z")

</div>

You're very welcome.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 1, 2017, 5:02am UTC](https://discuss.elastic.co/t/install-previous-versions-from-apt-get-repositories/70441/5 "2017-02-01T05:02:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
