Repositories for APT and YUM
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Generally available
Stack
Generally available
We have repositories available for APT and YUM-based distributions. Note that we provide binary packages, but no source packages.
We use the PGP key D88E42B4, Elasticsearch Signing Key, with fingerprint
4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
to sign all our packages. It is available from https://pgp.mit.edu.
To add the Beats repository for APT:
Download and install the Public Signing Key:
Shell wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpgYou may need to install the
apt-transport-httpspackage on Debian before proceeding:Shell sudo apt-get install apt-transport-httpsSave the repository definition to /etc/apt/sources.list.d/elastic-9.x.list:
Shell echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/9.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-9.x.listNoteThe package is free to use under the Elastic license. An alternative package which contains only features that are available under the Apache 2.0 license is also available. To install it, use the following sources list:
Shell echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/oss-9.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-9.x.listWarningTo add the Elastic repository, make sure that you use the
echomethod shown in the example. Do not useadd-apt-repositorybecause it will add adeb-srcentry, but we do not provide a source package.If you have added the
deb-srcentry by mistake, you will see an error like the following:Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)Simply delete the
deb-srcentry from the/etc/apt/sources.listfile, and the installation should work as expected.Run
apt-get update, and the repository is ready for use. For example, you can install Heartbeat by running:Shell sudo apt-get update && sudo apt-get install heartbeat-elasticTo configure Heartbeat to start automatically during boot, run:
Text sudo systemctl enable heartbeat-elastic
To add the Beats repository for YUM:
Download and install the public signing key:
Shell sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearchCreate a file with a
.repoextension (for example,elastic.repo) in your/etc/yum.repos.d/directory and add the following lines:Shell [elastic-9.x] name=Elastic repository for 9.x packages baseurl=https://artifacts.elastic.co/packages/9.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-mdNoteThe package is free to use under the Elastic license. An alternative package which contains only features that are available under the Apache 2.0 license is also available. To install it, use the following
baseurlin your.repofile:Shell baseurl=https://artifacts.elastic.co/packages/oss-9.x/yumYour repository is ready to use. For example, you can install Heartbeat by running:
Shell sudo yum install heartbeat-elasticTo configure Heartbeat to start automatically during boot, run:
Text sudo systemctl enable heartbeat-elastic