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:
Ashraf Sarhan 2014-11-27 19:35:29 +02:00 committed by Clinton Gormley
parent 39186edc86
commit 24f8807cb5
1 changed files with 2 additions and 2 deletions

View File

@ -27,14 +27,14 @@ Add the following to your /etc/apt/sources.list to enable the repository
["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 :
[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 :