[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
|
---|
[61562907] | 8 | "http://ftp.gnu.org/gnu/wget/wget-&wget-version;.tar.xz">
|
---|
[78865d9] | 9 | <!ENTITY wget-download-ftp
|
---|
[61562907] | 10 | "ftp://ftp.gnu.org/gnu/wget/wget-&wget-version;.tar.xz">
|
---|
[676a68ec] | 11 | <!ENTITY wget-md5sum "b0d58ef4963690e71effba24c105ed52">
|
---|
| 12 | <!ENTITY wget-size "1.8 MB">
|
---|
[6b241ec] | 13 | <!ENTITY wget-buildsize "28 MB (with tests)">
|
---|
| 14 | <!ENTITY wget-time "0.5 SBU (with tests)">
|
---|
[d47e7ea9] | 15 | ]>
|
---|
[def11b7] | 16 |
|
---|
[19234f1] | 17 | <sect1 id="wget" xreflabel="Wget-&wget-version;">
|
---|
[db0eb6a] | 18 | <?dbhtml filename="wget.html"?>
|
---|
[bab92281] | 19 |
|
---|
[db0eb6a] | 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
[bab92281] | 24 |
|
---|
[db0eb6a] | 25 | <title>Wget-&wget-version;</title>
|
---|
[bab92281] | 26 |
|
---|
[db0eb6a] | 27 | <indexterm zone="wget">
|
---|
| 28 | <primary sortas="a-Wget">Wget</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Wget</title>
|
---|
[bab92281] | 33 |
|
---|
[78865d9] | 34 | <para>
|
---|
| 35 | The <application>Wget</application> package contains a utility useful for
|
---|
| 36 | non-interactive downloading of files from the Web.
|
---|
| 37 | </para>
|
---|
[bab92281] | 38 |
|
---|
[9912ce81] | 39 | &lfs78_checked;
|
---|
[1c65bfd] | 40 |
|
---|
[db0eb6a] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[78865d9] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&wget-download-http;"/>
|
---|
| 46 | </para>
|
---|
[db0eb6a] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[78865d9] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&wget-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[db0eb6a] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[78865d9] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &wget-md5sum;
|
---|
| 56 | </para>
|
---|
[db0eb6a] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[78865d9] | 59 | <para>
|
---|
| 60 | Download size: &wget-size;
|
---|
| 61 | </para>
|
---|
[db0eb6a] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[78865d9] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &wget-buildsize;
|
---|
| 66 | </para>
|
---|
[db0eb6a] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[78865d9] | 69 | <para>
|
---|
| 70 | Estimated build time: &wget-time;
|
---|
| 71 | </para>
|
---|
[2174baa] | 72 | </listitem>
|
---|
[db0eb6a] | 73 | </itemizedlist>
|
---|
[bab92281] | 74 |
|
---|
[db0eb6a] | 75 | <bridgehead renderas="sect3">Wget Dependencies</bridgehead>
|
---|
[bab92281] | 76 |
|
---|
[61562907] | 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
[2c38e951] | 79 | <xref linkend="gnutls"/>
|
---|
[61562907] | 80 | </para>
|
---|
| 81 |
|
---|
[db0eb6a] | 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[78865d9] | 83 | <para role="optional">
|
---|
| 84 | <xref linkend="libidn"/>,
|
---|
[2c38e951] | 85 | <xref linkend="openssl"/>,
|
---|
[676a68ec] | 86 | <xref linkend="pcre"/>,
|
---|
| 87 | <xref linkend="valgrind"/> (optional for the test suite),
|
---|
| 88 | <ulink url="http://search.cpan.org/~behroozi/IO-Socket-SSL/">IO::Socket::SSL</ulink>,
|
---|
| 89 | <ulink url="http://search.cpan.org/~gaas/HTTP-Daemon/">HTTP::Daemon</ulink>
|
---|
| 90 | (both required for the test suite), and
|
---|
[11dadc69] | 91 | <ulink url="https://github.com/rockdaboot/libpsl/">libpsl</ulink>
|
---|
[78865d9] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <para condition="html" role="usernotes">
|
---|
| 95 | User Notes: <ulink url="&blfs-wiki;/wget"/>
|
---|
| 96 | </para>
|
---|
[db0eb6a] | 97 | </sect2>
|
---|
[bab92281] | 98 |
|
---|
[db0eb6a] | 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of Wget</title>
|
---|
| 101 |
|
---|
[78865d9] | 102 | <para>
|
---|
| 103 | Install <application>Wget</application> by running the following commands:
|
---|
| 104 | </para>
|
---|
[db0eb6a] | 105 |
|
---|
[987fe4db] | 106 | <screen><userinput>./configure --prefix=/usr \
|
---|
[36dacf3] | 107 | --sysconfdir=/etc &&
|
---|
[db0eb6a] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
[78865d9] | 110 | <para>
|
---|
[2c38e951] | 111 | To test the results, issue: <command>make check</command>. The HTTPS
|
---|
| 112 | tests fail if <application>openssl</application> is used and
|
---|
| 113 | <application>valgrind</application> is enabled.
|
---|
[78865d9] | 114 | </para>
|
---|
[bab92281] | 115 |
|
---|
[78865d9] | 116 | <para>
|
---|
| 117 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 118 | </para>
|
---|
[bab92281] | 119 |
|
---|
[db0eb6a] | 120 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 121 | </sect2>
|
---|
[bab92281] | 122 |
|
---|
[db0eb6a] | 123 | <sect2 role="commands">
|
---|
| 124 | <title>Command Explanations</title>
|
---|
[bab92281] | 125 |
|
---|
[78865d9] | 126 | <para>
|
---|
| 127 | <parameter>--sysconfdir=/etc</parameter>: This relocates the configuration
|
---|
| 128 | file from <filename class="directory">/usr/etc</filename> to
|
---|
| 129 | <filename class="directory">/etc</filename>.
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
[2c38e951] | 133 | <option>--with-ssl=openssl</option>: This allows the program to use
|
---|
[5c6f5793] | 134 | <xref linkend="openssl"/> instead of <xref linkend="gnutls"/>. The
|
---|
| 135 | combination wget-1.6.3—openssl-1.0.2a is known to be broken.
|
---|
[78865d9] | 136 | </para>
|
---|
[61562907] | 137 |
|
---|
[4e74dd7] | 138 | <para>
|
---|
| 139 | <option>--enable-valgrind-tests</option>: This allows the tests to be
|
---|
[2c38e951] | 140 | run under valgrind.
|
---|
[4e74dd7] | 141 | </para>
|
---|
| 142 |
|
---|
[db0eb6a] | 143 | </sect2>
|
---|
[bab92281] | 144 |
|
---|
[db0eb6a] | 145 | <sect2 role="configuration">
|
---|
| 146 | <title>Configuring Wget</title>
|
---|
| 147 |
|
---|
| 148 | <sect3 id="wget-config">
|
---|
| 149 | <title>Config Files</title>
|
---|
[bab92281] | 150 |
|
---|
[78865d9] | 151 | <para>
|
---|
| 152 | <filename>/etc/wgetrc</filename> and
|
---|
| 153 | <filename>~/.wgetrc</filename>
|
---|
| 154 | </para>
|
---|
[bab92281] | 155 |
|
---|
[db0eb6a] | 156 | <indexterm zone="wget wget-config">
|
---|
| 157 | <primary sortas="e-AA.wgetrc">~/.wgetrc</primary>
|
---|
| 158 | </indexterm>
|
---|
[bab92281] | 159 |
|
---|
[db0eb6a] | 160 | <indexterm zone="wget wget-config">
|
---|
| 161 | <primary sortas="e-etc-wgetrc">/etc/wgetrc</primary>
|
---|
| 162 | </indexterm>
|
---|
[bab92281] | 163 |
|
---|
[78865d9] | 164 | <para>
|
---|
| 165 | If you have installed the <xref linkend="cacerts"/> and you want
|
---|
| 166 | <application>Wget</application> to use them, as the
|
---|
| 167 | <systemitem class="username">root</systemitem> user:
|
---|
| 168 | </para>
|
---|
[bab92281] | 169 |
|
---|
[78865d9] | 170 | <screen role="root"><userinput>echo ca-directory=/etc/ssl/certs >> /etc/wgetrc</userinput></screen>
|
---|
[61562907] | 171 |
|
---|
[db0eb6a] | 172 | </sect3>
|
---|
[61562907] | 173 |
|
---|
[db0eb6a] | 174 | </sect2>
|
---|
[bab92281] | 175 |
|
---|
[db0eb6a] | 176 | <sect2 role="content">
|
---|
| 177 | <title>Contents</title>
|
---|
| 178 |
|
---|
| 179 | <segmentedlist>
|
---|
| 180 | <segtitle>Installed Program</segtitle>
|
---|
[c3c56b2] | 181 | <segtitle>Installed Libraries</segtitle>
|
---|
| 182 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 183 |
|
---|
[db0eb6a] | 184 | <seglistitem>
|
---|
[c3c56b2] | 185 | <seg>
|
---|
| 186 | wget
|
---|
| 187 | </seg>
|
---|
| 188 | <seg>
|
---|
| 189 | None
|
---|
| 190 | </seg>
|
---|
| 191 | <seg>
|
---|
| 192 | None
|
---|
| 193 | </seg>
|
---|
[db0eb6a] | 194 | </seglistitem>
|
---|
| 195 | </segmentedlist>
|
---|
[bab92281] | 196 |
|
---|
[db0eb6a] | 197 | <variablelist>
|
---|
| 198 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 199 | <?dbfo list-presentation="list"?>
|
---|
| 200 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 201 |
|
---|
[db0eb6a] | 202 | <varlistentry id="wget-prog">
|
---|
| 203 | <term><command>wget</command></term>
|
---|
| 204 | <listitem>
|
---|
[78865d9] | 205 | <para>
|
---|
| 206 | retrieves files from the Web using the HTTP, HTTPS and FTP
|
---|
| 207 | protocols. It is designed to be non-interactive, for background or
|
---|
| 208 | unattended operations.
|
---|
| 209 | </para>
|
---|
[db0eb6a] | 210 | <indexterm zone="wget wget-prog">
|
---|
| 211 | <primary sortas="b-wget">wget</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[61562907] | 215 |
|
---|
[db0eb6a] | 216 | </variablelist>
|
---|
[61562907] | 217 |
|
---|
[db0eb6a] | 218 | </sect2>
|
---|
[61562907] | 219 |
|
---|
[f45b1953] | 220 | </sect1>
|
---|