From: andy5995 Date: Tue, 27 Dec 2022 23:47:10 +0000 (-0600) Subject: MANUAL.md: add pipe to apt-key example X-Git-Tag: curl-7_88_0~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54130a6cad4e044a199f40e857c300a139818b9b;p=thirdparty%2Fcurl.git MANUAL.md: add pipe to apt-key example Closes #10170 --- diff --git a/docs/MANUAL.md b/docs/MANUAL.md index a14bb2289a..44f6f5501d 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -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