MANUAL.md: add pipe to apt-key example

Closes #10170
This commit is contained in:
andy5995 2022-12-27 17:47:10 -06:00 committed by Daniel Stenberg
parent 01b6afd8d9
commit 54130a6cad
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -177,6 +177,16 @@ to a remote FTP server using a Blue Coat FTP proxy with the options:
See the manual for your FTP proxy to determine the form it expects to set up
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):
curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
The '|' pipes the output to STDIN. `-` tells `apt-key` that the key file
should be read from STDIN.
## Ranges
HTTP 1.1 introduced byte-ranges. Using this, a client can request to get only