Skip to content

Commit

Permalink
Edit apt-get installation instructions
Browse files Browse the repository at this point in the history
Closes #24564

Show using `/etc/apt/trusted.gpg.d`, a directory that `apt-get` searches
automatically, for storing public keys. Edit the three locations where
we showed using `/usr/share/keyrings`, including two partials.
  • Loading branch information
ptgott committed Dec 24, 2024
1 parent e6c23cd commit e05849d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions docs/pages/includes/cloud/install-linux-cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
```code
# Download Teleport's PGP public key
$ sudo curl https://apt.releases.teleport.dev/gpg \
-o /usr/share/keyrings/teleport-archive-keyring.asc
-o /etc/apt/trusted.gpg.d/teleport.asc
# Source variables about OS version
$ source /etc/os-release
# Add the Teleport APT repository for cloud.
$ echo "deb [signed-by=/usr/share/keyrings/teleport-archive-keyring.asc] \
https://apt.releases.teleport.dev/${ID?} ${VERSION_CODENAME?} stable/cloud" \
$ echo "deb https://apt.releases.teleport.dev/${ID?} ${VERSION_CODENAME?} stable/cloud" \
| sudo tee /etc/apt/sources.list.d/teleport.list > /dev/null
# Provide your Teleport domain to query the latest compatible Teleport version
Expand Down
5 changes: 2 additions & 3 deletions docs/pages/includes/install-linux-ent-self-hosted.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
```code
# Download Teleport's PGP public key
$ sudo curl https://apt.releases.teleport.dev/gpg \
-o /usr/share/keyrings/teleport-archive-keyring.asc
-o /etc/apt/trusted.gpg.d/teleport.asc
# Source variables about OS version
$ source /etc/os-release
# Add the Teleport APT repository for v(=teleport.major_version=). You'll need to update this
# file for each major release of Teleport.
$ echo "deb [signed-by=/usr/share/keyrings/teleport-archive-keyring.asc] \
https://apt.releases.teleport.dev/${ID?} ${VERSION_CODENAME?} stable/v(=teleport.major_version=)" \
$ echo "deb https://apt.releases.teleport.dev/${ID?} ${VERSION_CODENAME?} stable/v(=teleport.major_version=)" \
| sudo tee /etc/apt/sources.list.d/teleport.list > /dev/null
$ sudo apt-get update
Expand Down
5 changes: 2 additions & 3 deletions docs/pages/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ repositories.
```code
# Download the Teleport PGP public key
$ sudo curl https://apt.releases.teleport.dev/gpg \
-o /usr/share/keyrings/teleport-archive-keyring.asc
-o /etc/apt/trusted.gpg.d/teleport.asc
# Add the Teleport APT repository. You'll need to update this file for each
# major release of Teleport.
$ echo "deb [signed-by=/usr/share/keyrings/teleport-archive-keyring.asc] \
https://apt.releases.teleport.dev/${ID?} ${VERSION_CODENAME?} \
$ echo "deb https://apt.releases.teleport.dev/${ID?} ${VERSION_CODENAME?} \
${TELEPORT_CHANNEL?}" \
| sudo tee /etc/apt/sources.list.d/teleport.list > /dev/null
Expand Down

0 comments on commit e05849d

Please sign in to comment.