Docs: Update repositories.asciidoc
1. Enable the repository using "add-apt-repository" to avoid this error "No command 'deb' found". 2. Adding "sudo" to update and install command. Closes #8691
This commit is contained in:
parent
39186edc86
commit
24f8807cb5
|
@ -27,14 +27,14 @@ Add the following to your /etc/apt/sources.list to enable the repository
|
||||||
|
|
||||||
["source","sh",subs="attributes,callouts"]
|
["source","sh",subs="attributes,callouts"]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main
|
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main"
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
Run apt-get update and the repository is ready for use. You can install it with :
|
Run apt-get update and the repository is ready for use. You can install it with :
|
||||||
|
|
||||||
[source,sh]
|
[source,sh]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
apt-get update && apt-get install elasticsearch
|
sudo apt-get update && sudo apt-get install elasticsearch
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
Configure Elasticsearch to automatically start during bootup :
|
Configure Elasticsearch to automatically start during bootup :
|
||||||
|
|
Loading…
Reference in New Issue