Skip to content

Instantly share code, notes, and snippets.

@ApOgEE
Last active September 29, 2021 19:24
Show Gist options
  • Select an option

  • Save ApOgEE/62a09a4cbe31e7a75abb67aced271daa to your computer and use it in GitHub Desktop.

Select an option

Save ApOgEE/62a09a4cbe31e7a75abb67aced271daa to your computer and use it in GitHub Desktop.

Revisions

  1. ApOgEE revised this gist Sep 29, 2021. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,26 @@
    # 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.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    ```

    or

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

    or

    ```
    dnf config-manager --add-repo https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    ```

    1. Enable Repo
    1. Enable Elasticsearch Repo
    ```
    dnf config-manager --set-enabled elasticsearch
    ```
  2. ApOgEE revised this gist Sep 29, 2021. 1 changed file with 12 additions and 2 deletions.
    14 changes: 12 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,22 @@
    1. Download and add this file to `/etc/yum.repos.d`
    ```
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    ```
    or
    ```
    cd /etc/yum.repos.d/
    curl -LOC - https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    curl -LOC -
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    ```
    or
    ```
    dnf config-manager --add-repo https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bbb0331ea7afad125c199c76c674dbbf942343f6/elasticsearch.repo
    ```

    1. Enable Repo
    ```
    dnf config-manager --set-enabled elasticsearch
    ```

    1. Import GPG-KEY
  3. ApOgEE revised this gist Sep 29, 2021. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,12 @@
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    ```
    or
    ```
    cd /etc/yum.repos.d/
    curl -LOC - https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    ```

    1. Import GPG-KEY
    ```
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
  4. ApOgEE revised this gist Sep 29, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions elasticsearch.repo
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    [elasticsearch-7.x]
    [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=1
    enabled=0
    autorefresh=1
    type=rpm-md
    type=rpm-md
  5. ApOgEE revised this gist Jan 26, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    # Centos8 - Install Elasticsearch 7.x From Repo

    0. Download and add this file to `/etc/yum.repos.d`
    1. Download and add this file to `/etc/yum.repos.d`
    ```
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    ```
    0. Import GPG-KEY
    1. Import GPG-KEY
    ```
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    ```

    0. Install
    1. Install
    ```
    dnf install elasticsearch
    ```
  6. ApOgEE revised this gist Jan 26, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    # Centos8 - Install Elasticsearch 7.x From Repo

    #. Download and add this file to `/etc/yum.repos.d`
    0. Download and add this file to `/etc/yum.repos.d`
    ```
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    ```
    #. Import GPG-KEY
    0. Import GPG-KEY
    ```
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    ```

    #. Install
    0. Install
    ```
    dnf install elasticsearch
    ```
  7. ApOgEE revised this gist Jan 26, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    #. Download and add this file to `/etc/yum.repos.d`
    ```
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bb68eaff7174a8ffc4126163214ebe4d04e8abcc/elasticsearch.repo
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/a0ff081e3dd916ca75e0473047b1b8a2e8ad993a/elasticsearch.repo
    ```
    #. Import GPG-KEY
    ```
  8. ApOgEE revised this gist Jan 26, 2021. 1 changed file with 14 additions and 3 deletions.
    17 changes: 14 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,16 @@
    # Centos8 - Install Elasticsearch 7.x From Repo

    ```
    /etc/yum.repos.d/elasticsearch.repo
    ```
    #. Download and add this file to `/etc/yum.repos.d`
    ```
    curl -o /etc/yum.repos.d/elasticsearch.repo \
    https://gist.github.com/ApOgEE/62a09a4cbe31e7a75abb67aced271daa/raw/bb68eaff7174a8ffc4126163214ebe4d04e8abcc/elasticsearch.repo
    ```
    #. Import GPG-KEY
    ```
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    ```

    #. Install
    ```
    dnf install elasticsearch
    ```
  9. ApOgEE revised this gist Jan 26, 2021. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions elasticsearch.repo
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    [elasticsearch-7.x]
    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=1
    autorefresh=1
    type=rpm-md
  10. ApOgEE created this gist Jan 26, 2021.
    5 changes: 5 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Centos8 - Install Elasticsearch 7.x From Repo

    ```
    /etc/yum.repos.d/elasticsearch.repo
    ```