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-12-07 18:59:30 -05:00
|
|
|
We use the PGP key link:http://pgp.mit.edu/pks/lookup?op=vindex&search=0xD27D666CD88E42B4[D88E42B4],
|
|
|
|
Elasticsearch Signing Key, with fingerprint
|
|
|
|
```
|
|
|
|
4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
|
|
|
|
```
|
|
|
|
to sign all our packages. It is available from pgp.mit.edu.
|
|
|
|
|
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
|
|
|
|
|
2014-07-23 05:54:53 -04:00
|
|
|
["source","sh",subs="attributes,callouts"]
|
2013-12-19 09:54:40 -05:00
|
|
|
--------------------------------------------------
|
2014-11-27 12:35:29 -05:00
|
|
|
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/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]
|
|
|
|
--------------------------------------------------
|
2014-11-27 12:35:29 -05:00
|
|
|
sudo apt-get update && sudo apt-get install elasticsearch
|
2014-05-16 13:06:10 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2014-11-21 15:03:34 -05:00
|
|
|
Configure Elasticsearch to automatically start during bootup :
|
2013-12-19 09:54:40 -05:00
|
|
|
|
2014-11-21 15:03:34 -05:00
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo update-rc.d elasticsearch defaults 95 10
|
|
|
|
--------------------------------------------------
|
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
|
|
|
|
2014-07-23 05:54:53 -04:00
|
|
|
["source","sh",subs="attributes,callouts"]
|
2013-12-19 09:54:40 -05:00
|
|
|
--------------------------------------------------
|
2014-07-23 05:54:53 -04:00
|
|
|
[elasticsearch-{branch}]
|
|
|
|
name=Elasticsearch repository for {branch}.x packages
|
|
|
|
baseurl=http://packages.elasticsearch.org/elasticsearch/{branch}/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
|
|
|
|
--------------------------------------------------
|
2014-12-05 05:14:13 -05:00
|
|
|
|
|
|
|
Configure Elasticsearch to automatically start during bootup. If your
|
|
|
|
distribution is using SysV, then you will need to run :
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
chkconfig --add elasticsearch
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
Otherwise if your distribution is using systemd :
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo /bin/systemctl daemon-reload
|
|
|
|
sudo /bin/systemctl enable elasticsearch.service
|
|
|
|
--------------------------------------------------
|