Skip to content

Instantly share code, notes, and snippets.

@ApOgEE
Last active September 29, 2021 19:24
Show Gist options
  • Save ApOgEE/62a09a4cbe31e7a75abb67aced271daa to your computer and use it in GitHub Desktop.
Save ApOgEE/62a09a4cbe31e7a75abb67aced271daa to your computer and use it in GitHub Desktop.
Centos 8, RockyLinux 8 - Install Elasticsearch 7.x From Repo

Centos8 - Install Elasticsearch 7.x From Repo

  1. Download and add this file to /etc/yum.repos.d

    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.githubusercontent.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    

    or

    cd /etc/yum.repos.d/
    curl -LOC - https://gist.githubusercontent.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    

    or

    dnf config-manager --add-repo https://gist.githubusercontent.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    
  2. Enable Elasticsearch Repo

    dnf config-manager --set-enabled elasticsearch
    
  3. Import GPG-KEY

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

    dnf install elasticsearch
    
[elasticsearch]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment