Difference between revisions of "Elastic repo"

From SME Server
Jump to navigationJump to search
 
Line 6: Line 6:
 
  /sbin/e-smith/db yum_repositories set elastic6 repository \
 
  /sbin/e-smith/db yum_repositories set elastic6 repository \
 
  Name 'Elasticsearch repository for 6.x packages' \
 
  Name 'Elasticsearch repository for 6.x packages' \
  BaseURL '[https://artifacts.elastic.co/packages/6.x/yum' https://artifacts.elastic.co/packages/6.x/yum'] \
+
  BaseURL 'https://artifacts.elastic.co/packages/6.x/yum' \
 
  GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 
  GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 
  GPGCheck yes \
 
  GPGCheck yes \
Line 15: Line 15:
 
  /sbin/e-smith/db yum_repositories set elastic5 repository \
 
  /sbin/e-smith/db yum_repositories set elastic5 repository \
 
  Name 'Elasticsearch repository for 5.x packages' \
 
  Name 'Elasticsearch repository for 5.x packages' \
  BaseURL '[https://artifacts.elastic.co/packages/5.x/yum' https://artifacts.elastic.co/packages/6.x/yum'] \
+
  BaseURL '[https://artifacts.elastic.co/packages/5.x/yum' https://artifacts.elastic.co/packages/5.x/yum'] \
 +
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 +
GPGCheck yes \
 +
EnableGroups yes \
 +
Visible no \
 +
status disabled
 +
 
 +
/sbin/e-smith/db yum_repositories set elastic2 repository \
 +
Name 'Elasticsearch repository for 2.x packages' \
 +
BaseURL 'https://packages.elastic.co/elasticsearch/2.x/centos' \
 
  GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 
  GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 
  GPGCheck yes \
 
  GPGCheck yes \
Line 24: Line 33:
 
  /sbin/e-smith/db yum_repositories set elastic1 repository \
 
  /sbin/e-smith/db yum_repositories set elastic1 repository \
 
  Name 'Elasticsearch repository for 1.6 packages' \
 
  Name 'Elasticsearch repository for 1.6 packages' \
  BaseURL '[https://artifacts.elastic.co/packages/1.6/yum' https://artifacts.elastic.co/packages/6.x/yum'] \
+
  BaseURL '[https://artifacts.elastic.co/packages/1.6/yum' https://artifacts.elastic.co/packages/1.6/yum'] \
 
  GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 
  GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
 
  GPGCheck yes \
 
  GPGCheck yes \
Line 30: Line 39:
 
  Visible no \
 
  Visible no \
 
  status disabled
 
  status disabled
 
  
 
<noinclude>
 
<noinclude>

Latest revision as of 19:34, 13 August 2018

Warning.png Warning:
Copy the configuration setting to your server as is, do not modify anything as that might harm your installation. To use it to install package enable it using the option --enablerepo=elastic at the SME Server shell.


Below you find the installation command for the Elastic repo repository which can be entered on the SME Server shell.


/sbin/e-smith/db yum_repositories set elastic6 repository \
Name 'Elasticsearch repository for 6.x packages' \
BaseURL 'https://artifacts.elastic.co/packages/6.x/yum' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set elastic5 repository \
Name 'Elasticsearch repository for 5.x packages' \
BaseURL 'https://artifacts.elastic.co/packages/5.x/yum' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set elastic2 repository \
Name 'Elasticsearch repository for 2.x packages' \
BaseURL 'https://packages.elastic.co/elasticsearch/2.x/centos' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set elastic1 repository \
Name 'Elasticsearch repository for 1.6 packages' \
BaseURL 'https://artifacts.elastic.co/packages/1.6/yum' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled


After adding it to the database updating the configuration file is required:

signal-event yum-modify


source: https://artifacts.elastic.co/GPG-KEY-elasticsearch

source: https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html