From c972583f6c57d15437e36c63cb0bc19790a7f2b8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 18 Jun 2026 19:00:48 +0200 Subject: [PATCH] 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 b13e9066b3dfd65ba8aadc336232ae7832ac687a #16127 Follow-up to 54130a6cad4e044a199f40e857c300a139818b9b #10170 Closes #22090 --- docs/MANUAL.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 1032098dcb..fb62f64ba2 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -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