MANUAL.md: update apt-key example

To use `tee` instead, due to `apt-key` being deprecated, and missing
from recent distros.

Also lowercase `stdin` to match rest of the file.

Ref: https://documentation.ubuntu.com/release-notes/26.04/summary-for-lts-users/#package-management-apt-3

Follow-up to b13e9066b3 #16127
Follow-up to 54130a6cad #10170

Closes #22090
This commit is contained in:
Viktor Szakats 2026-06-18 19:00:48 +02:00
parent adb4edd177
commit c972583f6c
No known key found for this signature in database

View file

@ -188,13 +188,13 @@ transfers, and curl's `-v` option to see exactly what curl is sending.
## Piping
Get a key file and add it with `apt-key` (when on a system that uses `apt` for
package management):
Get a key file and install it as a trusted one (when on a system that uses
`apt` for package management):
curl -L https://apt.example.org/llvm-snapshot.gpg.key | sudo apt-key add -
curl -L https://apt.example.org/llvm-snapshot.gpg.key | sudo tee
/etc/apt/trusted.gpg.d/llvm-snapshot.asc >/dev/null
The '|' pipes the output to STDIN. `-` tells `apt-key` that the key file
should be read from STDIN.
The '|' pipes the output to stdin. `tee` reads from stdin.
## Ranges