92 lines
3.0 KiB
Plaintext
92 lines
3.0 KiB
Plaintext
[[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.
|
|
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.
|
|
|
|
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.
|
|
|
|
[float]
|
|
=== APT
|
|
|
|
Download and install the Public Signing Key
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
|
|
--------------------------------------------------
|
|
|
|
Add the following to your /etc/apt/sources.list to enable the repository
|
|
|
|
["source","sh",subs="attributes,callouts"]
|
|
--------------------------------------------------
|
|
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main"
|
|
--------------------------------------------------
|
|
|
|
Run apt-get update and the repository is ready for use. You can install it with :
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
sudo apt-get update && sudo apt-get install elasticsearch
|
|
--------------------------------------------------
|
|
|
|
Configure Elasticsearch to automatically start during bootup :
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
sudo update-rc.d elasticsearch defaults 95 10
|
|
--------------------------------------------------
|
|
|
|
[float]
|
|
=== YUM
|
|
|
|
Download and install the Public Signing Key
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch
|
|
--------------------------------------------------
|
|
|
|
Add the following in your `/etc/yum.repos.d/` directory
|
|
in a file named (for example) `elasticsearch.repo`
|
|
|
|
["source","sh",subs="attributes,callouts"]
|
|
--------------------------------------------------
|
|
[elasticsearch-{branch}]
|
|
name=Elasticsearch repository for {branch}.x packages
|
|
baseurl=http://packages.elasticsearch.org/elasticsearch/{branch}/centos
|
|
gpgcheck=1
|
|
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
|
|
enabled=1
|
|
--------------------------------------------------
|
|
|
|
And your repository is ready for use. You can install it with :
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
yum install elasticsearch
|
|
--------------------------------------------------
|
|
|
|
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
|
|
--------------------------------------------------
|