mirror of
https://github.com/curl/curl.git
synced 2026-06-20 19:35:38 +03:00
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 tob13e9066b3#16127 Follow-up to54130a6cad#10170 Closes #22090
This commit is contained in:
parent
adb4edd177
commit
c972583f6c
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue