mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Updates the command to add the repo to not use add-apt-repository, which 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
This commit is contained in:
parent
69f74d714f
commit
4f938ad37e
@ -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 :
|
||||
|
Loading…
x
Reference in New Issue
Block a user