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