[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d47e7ea9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[78865d9] | 7 | <!ENTITY wget-download-http
|
---|
[828b199] | 8 | "&gnu-http;/wget/wget-&wget-version;.tar.gz">
|
---|
[f4ac7141] | 9 | <!ENTITY wget-download-ftp " ">
|
---|
[afc9baf] | 10 | <!ENTITY wget-md5sum "271bf949384d0858c2c3d419f6311365">
|
---|
| 11 | <!ENTITY wget-size "4.9 MB">
|
---|
[6ca13da3] | 12 | <!ENTITY wget-buildsize "36 MB (add 27 MB for tests)">
|
---|
| 13 | <!ENTITY wget-time "0.3 SBU (add 0.3 SBU for tests)">
|
---|
[d47e7ea9] | 14 | ]>
|
---|
[def11b7] | 15 |
|
---|
[19234f1] | 16 | <sect1 id="wget" xreflabel="Wget-&wget-version;">
|
---|
[db0eb6a] | 17 | <?dbhtml filename="wget.html"?>
|
---|
[bab92281] | 18 |
|
---|
| 19 |
|
---|
[db0eb6a] | 20 | <title>Wget-&wget-version;</title>
|
---|
[bab92281] | 21 |
|
---|
[db0eb6a] | 22 | <indexterm zone="wget">
|
---|
| 23 | <primary sortas="a-Wget">Wget</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to Wget</title>
|
---|
[bab92281] | 28 |
|
---|
[78865d9] | 29 | <para>
|
---|
| 30 | The <application>Wget</application> package contains a utility useful for
|
---|
| 31 | non-interactive downloading of files from the Web.
|
---|
| 32 | </para>
|
---|
[bab92281] | 33 |
|
---|
[e375445] | 34 | &lfs122_checked;
|
---|
[1c65bfd] | 35 |
|
---|
[db0eb6a] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[78865d9] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&wget-download-http;"/>
|
---|
| 41 | </para>
|
---|
[db0eb6a] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[78865d9] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&wget-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[db0eb6a] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[78865d9] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &wget-md5sum;
|
---|
| 51 | </para>
|
---|
[db0eb6a] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[78865d9] | 54 | <para>
|
---|
| 55 | Download size: &wget-size;
|
---|
| 56 | </para>
|
---|
[db0eb6a] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[78865d9] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &wget-buildsize;
|
---|
| 61 | </para>
|
---|
[db0eb6a] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[78865d9] | 64 | <para>
|
---|
| 65 | Estimated build time: &wget-time;
|
---|
| 66 | </para>
|
---|
[2174baa] | 67 | </listitem>
|
---|
[db0eb6a] | 68 | </itemizedlist>
|
---|
[bab92281] | 69 |
|
---|
[db0eb6a] | 70 | <bridgehead renderas="sect3">Wget Dependencies</bridgehead>
|
---|
[bab92281] | 71 |
|
---|
[61562907] | 72 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 73 | <para role="recommended">
|
---|
[7b231190] | 74 | <xref linkend="libpsl"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Recommended at runtime</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
| 79 | <xref role="runtime" linkend="make-ca"/>
|
---|
[61562907] | 80 | </para>
|
---|
| 81 |
|
---|
[db0eb6a] | 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[78865d9] | 83 | <para role="optional">
|
---|
[87c38e8] | 84 | <xref linkend="gnutls"/>,
|
---|
[4392a40] | 85 | <xref linkend="perl-http-daemon"/> (for the test suite),
|
---|
| 86 | <xref linkend="perl-io-socket-ssl"/> (for the test suite),
|
---|
[2bfc338] | 87 | <xref linkend="libidn2"/>,
|
---|
[abfacaf] | 88 | <xref linkend="pcre2"/>, and
|
---|
[1ad3510e] | 89 | <xref linkend="valgrind"/> (for the test suite)
|
---|
[78865d9] | 90 | </para>
|
---|
| 91 |
|
---|
[db0eb6a] | 92 | </sect2>
|
---|
[bab92281] | 93 |
|
---|
[db0eb6a] | 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Wget</title>
|
---|
| 96 |
|
---|
[78865d9] | 97 | <para>
|
---|
| 98 | Install <application>Wget</application> by running the following commands:
|
---|
| 99 | </para>
|
---|
[db0eb6a] | 100 |
|
---|
[987fe4db] | 101 | <screen><userinput>./configure --prefix=/usr \
|
---|
[87c38e8] | 102 | --sysconfdir=/etc \
|
---|
| 103 | --with-ssl=openssl &&
|
---|
[db0eb6a] | 104 | make</userinput></screen>
|
---|
| 105 |
|
---|
[78865d9] | 106 | <para>
|
---|
[31ea2da] | 107 | To test the results, issue: <command>make check</command>.
|
---|
[78865d9] | 108 | </para>
|
---|
[bab92281] | 109 |
|
---|
[c57cae3] | 110 | <!-- libwww-perl/HTTP-Daemon/#21
|
---|
| 111 | Removing, since IO::Socket//INET6 has been deprecated
|
---|
| 112 | and replaced with IO::Socket::IP, which fixes the
|
---|
| 113 | problem
|
---|
[b51fe6e] | 114 | <para>
|
---|
| 115 | HTTPS tests are known to fail if Perl module IO::Socket::INET6
|
---|
| 116 | is installed.
|
---|
| 117 | </para>
|
---|
[c57cae3] | 118 | -->
|
---|
| 119 | <para>
|
---|
| 120 | Some tests may fail when Valgrind tests are enabled.
|
---|
| 121 | </para>
|
---|
[8381f5e] | 122 |
|
---|
[78865d9] | 123 | <para>
|
---|
| 124 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 125 | </para>
|
---|
[bab92281] | 126 |
|
---|
[db0eb6a] | 127 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 128 | </sect2>
|
---|
[bab92281] | 129 |
|
---|
[db0eb6a] | 130 | <sect2 role="commands">
|
---|
| 131 | <title>Command Explanations</title>
|
---|
[bab92281] | 132 |
|
---|
[78865d9] | 133 | <para>
|
---|
| 134 | <parameter>--sysconfdir=/etc</parameter>: This relocates the configuration
|
---|
| 135 | file from <filename class="directory">/usr/etc</filename> to
|
---|
| 136 | <filename class="directory">/etc</filename>.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
[87c38e8] | 140 | <parameter>--with-ssl=openssl</parameter>: This allows the program to use
|
---|
[94b42903] | 141 | openssl instead of <xref linkend="gnutls"/>.
|
---|
[78865d9] | 142 | </para>
|
---|
[61562907] | 143 |
|
---|
[4e74dd7] | 144 | <para>
|
---|
| 145 | <option>--enable-valgrind-tests</option>: This allows the tests to be
|
---|
[2c38e951] | 146 | run under valgrind.
|
---|
[4e74dd7] | 147 | </para>
|
---|
| 148 |
|
---|
[db0eb6a] | 149 | </sect2>
|
---|
[bab92281] | 150 |
|
---|
[db0eb6a] | 151 | <sect2 role="configuration">
|
---|
| 152 | <title>Configuring Wget</title>
|
---|
| 153 |
|
---|
| 154 | <sect3 id="wget-config">
|
---|
| 155 | <title>Config Files</title>
|
---|
[bab92281] | 156 |
|
---|
[78865d9] | 157 | <para>
|
---|
| 158 | <filename>/etc/wgetrc</filename> and
|
---|
| 159 | <filename>~/.wgetrc</filename>
|
---|
| 160 | </para>
|
---|
[bab92281] | 161 |
|
---|
[db0eb6a] | 162 | <indexterm zone="wget wget-config">
|
---|
| 163 | <primary sortas="e-AA.wgetrc">~/.wgetrc</primary>
|
---|
| 164 | </indexterm>
|
---|
[bab92281] | 165 |
|
---|
[db0eb6a] | 166 | <indexterm zone="wget wget-config">
|
---|
| 167 | <primary sortas="e-etc-wgetrc">/etc/wgetrc</primary>
|
---|
| 168 | </indexterm>
|
---|
[bab92281] | 169 |
|
---|
[6713ada] | 170 | <!--
|
---|
[78865d9] | 171 | <para>
|
---|
[2198a32] | 172 | If you have installed <xref linkend="make-ca"/> and you want
|
---|
[78865d9] | 173 | <application>Wget</application> to use them, as the
|
---|
| 174 | <systemitem class="username">root</systemitem> user:
|
---|
| 175 | </para>
|
---|
[bab92281] | 176 |
|
---|
[817374e] | 177 | <screen role="root"><userinput>echo ca-directory=/etc/ssl/certs >> /etc/wgetrc</userinput></screen>
|
---|
[6713ada] | 178 | -->
|
---|
[61562907] | 179 |
|
---|
[db0eb6a] | 180 | </sect3>
|
---|
[61562907] | 181 |
|
---|
[db0eb6a] | 182 | </sect2>
|
---|
[bab92281] | 183 |
|
---|
[db0eb6a] | 184 | <sect2 role="content">
|
---|
| 185 | <title>Contents</title>
|
---|
| 186 |
|
---|
| 187 | <segmentedlist>
|
---|
| 188 | <segtitle>Installed Program</segtitle>
|
---|
[c3c56b2] | 189 | <segtitle>Installed Libraries</segtitle>
|
---|
| 190 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 191 |
|
---|
[db0eb6a] | 192 | <seglistitem>
|
---|
[c3c56b2] | 193 | <seg>
|
---|
| 194 | wget
|
---|
| 195 | </seg>
|
---|
| 196 | <seg>
|
---|
| 197 | None
|
---|
| 198 | </seg>
|
---|
| 199 | <seg>
|
---|
| 200 | None
|
---|
| 201 | </seg>
|
---|
[db0eb6a] | 202 | </seglistitem>
|
---|
| 203 | </segmentedlist>
|
---|
[bab92281] | 204 |
|
---|
[db0eb6a] | 205 | <variablelist>
|
---|
| 206 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 207 | <?dbfo list-presentation="list"?>
|
---|
| 208 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 209 |
|
---|
[db0eb6a] | 210 | <varlistentry id="wget-prog">
|
---|
| 211 | <term><command>wget</command></term>
|
---|
| 212 | <listitem>
|
---|
[78865d9] | 213 | <para>
|
---|
| 214 | retrieves files from the Web using the HTTP, HTTPS and FTP
|
---|
| 215 | protocols. It is designed to be non-interactive, for background or
|
---|
[4c24eb0a] | 216 | unattended operations
|
---|
[78865d9] | 217 | </para>
|
---|
[db0eb6a] | 218 | <indexterm zone="wget wget-prog">
|
---|
| 219 | <primary sortas="b-wget">wget</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
[61562907] | 223 |
|
---|
[db0eb6a] | 224 | </variablelist>
|
---|
[61562907] | 225 |
|
---|
[db0eb6a] | 226 | </sect2>
|
---|
[61562907] | 227 |
|
---|
[f45b1953] | 228 | </sect1>
|
---|