1 .TH zpm-fetchurl 8 2019-03-05 "ZPM 0.7.0"
3 zpm-fetchurl \- download files
23 \fBzpm-fetchurl\fR downloads files
25 \fBzpm-fetchurl\fR understands http, https, and file type urls.
26 For https, it uses a trust on first use model for ssl certificates, but a more
27 common model verifying via root certificates, or no verfication can also be
30 While this program can be used directly, it is intended for use by zpm scripts
31 for downloading repositories and packages without requiring an external
34 URLs of the file scheme have an http style response header generated
35 internally so the same code and output are used.
39 output the response header only, implies \-r. The output file
40 is ignored and the header is written to stdout.
43 output the entire response, including the header
46 Limit the maximum number of redirects to \fIlimit\fR. The default is
50 output the response status code only
53 Don't verify any certificates.
56 Verify certificates via root certificates. This is normally the default for
57 TLS, but zpm-fetchurl uses a trust on first use policy instead. Root
58 certificates are found by default in /etc/zpm/roots.pem, but the ZPM_ROOTFILE
59 environment variable can be used to override this.
62 Output the request header.
65 Only download if remote is newer than the file given by path
68 Write the output to the file given by \fIpath\fR. Output is
69 written to stdout by default.
72 Calculate the output file name from the url.
75 Only if newer. Like \-z, except use the output file name, if any.
78 Fail silently on errors.
81 Output a progress bar. A '#' is accepted for compatibility with curl.
84 Set the User-Agent header to \fIuseragent\fR.
87 zpm fetchurl -o zpm-0.1.2.zpm https://zoranix.net/repo/packages/zpm-0.1.2.zpm
89 0 on success non zero on failure
91 Failure is any exit status code >= 400.
93 /var/lib/zpm/known_hosts