How to Add Elasticsearch Repository CentOS

January 17, 2018 | By the+gnu+linux+evangelist.

Add Elasticsearch Repo CentOS




Hi! The Tip shows you How to Install Elasticsearch Repository CentOS GNU/Linux Systems.

And the Elasticsearch for CentOS service is a distributed Restful Search and Analytics.

How to Add Elasticsearch Repository CentOS - Featured



  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

    How to Add Elasticsearch Repository CentOS - Open Terminal

    In case first see: Terminal QuickStart Guide.

  2. First, Import Elasticsearch GPG Key.

    sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    



  3. Then Add Elasticsearch Repository.

    sudo nano /etc/yum.repos.d/elasticsearch.repo
    

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    And Append:

    [elasticsearch-6.x]
    name=Elasticsearch repository for 6.x packages
    baseurl=https://artifacts.elastic.co/packages/6.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch/nenabled=1/nautorefresh=1
    type=rpm-md
    

    Ctrl+x to Save & Exit from nano Editor :)

  4. How to Install Elasticsearch on CentOS Systems

    Elasticsearch Installation Guide

QuickChic Theme • Powered by WordPress