2013-12-19 09:54:40 -05:00
|
|
|
[[setup-repositories]]
|
|
|
|
== Repositories
|
|
|
|
|
|
|
|
We also have repositories available for APT and YUM based distributions.
|
|
|
|
|
|
|
|
We have split the major versions in separate urls to avoid accidental upgrades across major version.
|
2014-04-21 20:00:10 -04:00
|
|
|
For all 0.90.x releases use 0.90 as version number, for 1.0.x use 1.0, for 1.1.x use 1.1 etc.
|
2013-12-19 09:54:40 -05:00
|
|
|
|
2014-01-15 09:09:18 -05:00
|
|
|
[float]
|
2013-12-19 09:54:40 -05:00
|
|
|
=== APT
|
|
|
|
|
|
|
|
Download and install the Public Signing Key
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
2014-07-23 05:13:03 -04:00
|
|
|
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
|
2013-12-19 09:54:40 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
Add the following to your /etc/apt/sources.list to enable the repository
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
2014-05-22 14:34:35 -04:00
|
|
|
deb http://packages.elasticsearch.org/elasticsearch/1.2/debian stable main
|
2013-12-19 09:54:40 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2014-05-16 13:06:10 -04:00
|
|
|
Run apt-get update and the repository is ready for use. You can install it with :
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
apt-get install elasticsearch
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2013-12-19 09:54:40 -05:00
|
|
|
|
|
|
|
|
2014-01-15 09:09:18 -05:00
|
|
|
[float]
|
2013-12-19 09:54:40 -05:00
|
|
|
=== YUM
|
|
|
|
|
|
|
|
Download and install the Public Signing Key
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2014-05-08 07:53:44 -04:00
|
|
|
Add the following in your `/etc/yum.repos.d/` directory
|
|
|
|
in a file named (for example) `elasticsearch.repo`
|
2013-12-19 09:54:40 -05:00
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
2014-05-22 14:34:35 -04:00
|
|
|
[elasticsearch-1.2]
|
|
|
|
name=Elasticsearch repository for 1.2.x packages
|
|
|
|
baseurl=http://packages.elasticsearch.org/elasticsearch/1.2/centos
|
2013-12-19 09:54:40 -05:00
|
|
|
gpgcheck=1
|
|
|
|
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
|
|
|
|
enabled=1
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2014-05-08 07:53:44 -04:00
|
|
|
And your repository is ready for use. You can install it with :
|
2013-12-19 09:54:40 -05:00
|
|
|
|
2014-05-08 07:53:44 -04:00
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
yum install elasticsearch
|
|
|
|
--------------------------------------------------
|