]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
MANUAL.md: add pipe to apt-key example
authorandy5995 <arch_stanton5995@protonmail.com>
Tue, 27 Dec 2022 23:47:10 +0000 (17:47 -0600)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Dec 2022 08:19:02 +0000 (09:19 +0100)
Closes #10170

docs/MANUAL.md

index a14bb2289aac400ece3977e1a2285c42ae86f059..44f6f5501d02311d726e75bde1c71e056a4bc083 100644 (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