Skip to content

Commit

Permalink
Correct way to add GPG key (#2459)
Browse files Browse the repository at this point in the history
using /etc/apt/keyrings is deprecated, see https://manpages.debian.org/testing/apt/apt-key.8.en.html
  • Loading branch information
ecspresso authored Dec 14, 2023
1 parent a777649 commit 191777c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions content/asciidoc-pages/installation/linux/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ apt install -y wget apt-transport-https
+
[source, bash]
----
mkdir -p /etc/apt/keyrings
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
----
+
. Configure the Eclipse Adoptium apt repository. To check the full list of versions supported take a look at the list in the tree at https://packages.adoptium.net/ui/native/deb/dists/.
+
[source, bash]
----
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
----
TIP: For Linux Mint (based on Ubuntu) you have to replace `VERSION_CODENAME` with `UBUNTU_CODENAME`.
+
Expand Down

0 comments on commit 191777c

Please sign in to comment.