diff --git a/docs/reference/setup/repositories.asciidoc b/docs/reference/setup/repositories.asciidoc index 1309c0287b0..e424706d745 100644 --- a/docs/reference/setup/repositories.asciidoc +++ b/docs/reference/setup/repositories.asciidoc @@ -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 :