Skip to content

Update Beats installation instructions for APT-based systems #36230

Open

Description

Currently, on https://www.elastic.co/guide/en/beats/filebeat/current/setup-repositories.html#_apt we have the following command as the first step in the installation instructions:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Running this command on Debian 11, it works, but also issues the following deprecation warning:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

Reading the man page for apt-key, it says:

       apt-key(8) will last be available in Debian 11 and Ubuntu 22.04.

We should update Beats installation instructions for APT-based systems to use the trusted.gpg.d method instead. Here are the replacement instructions:

wget -q https://artifacts.elastic.co/GPG-KEY-elasticsearch
gpg --no-default-keyring --keyring ./elasticsearch_keyring.gpg --import GPG-KEY-elasticsearch
gpg --no-default-keyring --keyring ./elasticsearch_keyring.gpg --export > elasticsearch.gpg
sudo mv elasticsearch.gpg /etc/apt/trusted.gpg.d/
rm GPG-KEY-elasticsearch elasticsearch_keyring.gpg*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions