Add Elasticsearch Repo Ubuntu
Hi! The Tip shows you How to Install Elasticsearch Repository Ubuntu-Based GNU/Linux Systems.
And this Elasticsearch Ubuntu PPA is valid also for:
- Linux Mint
- Lubuntu
- Kubuntu
- Xubuntu
- Zorin OS
- Elementary OS
- Linux Lite
- Bodhi Linux
- Kde Neon
- Pop!_OS
- Voyager
- Trisquel
- LXLE
- feren OS
- Peppermint
- Q4OS
- Linux Ultimate Edition
(Possibly search on Google what’s the corresponding Ubuntu Parent Release.)
-
Open a Terminal Shell session
Ctrl+Alt+t on Ubuntu Desktop
(Press “Enter” to Execute Commands) -
First, Import Elasticsearch GPG Key.
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
(For the Newer Release in case of apt-key Issue see: Gpg.d Keyring Setup Guide.)
-
Next Install Secure Apt Layer.
sudo apt install apt-transport-https
-
Then Add Elasticsearch Repository.
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
If Got “User is Not in Sudoers file” then see: How to Enable sudo
-
Finally, Refresh Apt Repositories.
sudo apt update
-
How to Install Elasticsearch on Ubuntu-based Systems