Reference: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
Download and install the public Signing Key
rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
Add the following in your/etc/yum.repos.d/directory with a file named (for example) Elasticsearch.repo
[elasticsearch-1.4]
name=Elasticsearch repository for 1.4.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
And your repository is a ready for use. You can install it with:
yum install elasticsearch
Configure Elasticsearch to automatically start during bootup. If your distribution is using SysV and then you'll need to run:
chkconfig --add elasticsearch
Otherwise If your distribution is using SYSTEMD:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
Installation script:
-
sudo rpm -- import https :// Packages elasticsearch org / GPG - key - elasticsearch
sudo cat >/etc/yum.repos.d/elasticsearch.repo <<EOF
[elasticsearch-1.4]
name=Elasticsearch repository for 1.4.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
EOF
yum install elasticsearch
From for notes (Wiz)
Elasticsearch RPM Installation