Skip to content

Commit

Permalink
Updates the command to add the repo to not use add-apt-repository, wh…
Browse files Browse the repository at this point in the history
…ich automatically adds a non-working deb-src line to sources.list. Command now uses echo to write the correct line to sources.list instead.

Fixes #9261
  • Loading branch information
Paul Echeverri authored and jordansissel committed Jan 12, 2015
1 parent 69f74d7 commit 4f938ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/reference/setup/repositories.asciidoc
Expand Up @@ -11,23 +11,23 @@ Elasticsearch Signing Key, with fingerprint

4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4

to sign all our packages. It is available from http://pgp.mit.edu.
to sign all our packages. It is available from http://pgp.mit.edu.

[float]
=== APT

Download and install the Public Signing Key
Download and install the Public Signing Key:

[source,sh]
--------------------------------------------------
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
--------------------------------------------------

Add the following to your /etc/apt/sources.list to enable the repository
Add the repository definition to your `/etc/apt/sources.list` file:

["source","sh",subs="attributes,callouts"]
--------------------------------------------------
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main"
echo "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main" | sudo tee -a /etc/apt/sources.list
--------------------------------------------------

Run apt-get update and the repository is ready for use. You can install it with :
Expand Down

0 comments on commit 4f938ad

Please sign in to comment.