[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">
|
---|
[a409004] | 11 | <!ENTITY wget-md5sum "db4e6dc7977cbddcd543b240079a4899">
|
---|
[1855ac33] | 12 | <!ENTITY wget-size "4.2 MB">
|
---|
[8381f5e] | 13 | <!ENTITY wget-buildsize "60 MB (with tests)">
|
---|
[658b42d8] | 14 | <!ENTITY wget-time "0.4 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 |
|
---|
[b3caf56] | 39 | &lfs10_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">
|
---|
[2198a32] | 79 | <xref role="runtime" linkend="make-ca"/> (runtime)
|
---|
[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"/>,
|
---|
[1ad3510e] | 88 | <xref linkend="libpsl"/>,
|
---|
[8381f5e] | 89 | <xref linkend="pcre"/> or <xref linkend="pcre2"/>, and
|
---|
[1ad3510e] | 90 | <xref linkend="valgrind"/> (for the test suite)
|
---|
[78865d9] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para condition="html" role="usernotes">
|
---|
| 94 | User Notes: <ulink url="&blfs-wiki;/wget"/>
|
---|
| 95 | </para>
|
---|
[db0eb6a] | 96 | </sect2>
|
---|
[bab92281] | 97 |
|
---|
[db0eb6a] | 98 | <sect2 role="installation">
|
---|
| 99 | <title>Installation of Wget</title>
|
---|
| 100 |
|
---|
[78865d9] | 101 | <para>
|
---|
| 102 | Install <application>Wget</application> by running the following commands:
|
---|
| 103 | </para>
|
---|
[db0eb6a] | 104 |
|
---|
[987fe4db] | 105 | <screen><userinput>./configure --prefix=/usr \
|
---|
[87c38e8] | 106 | --sysconfdir=/etc \
|
---|
| 107 | --with-ssl=openssl &&
|
---|
[db0eb6a] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
[78865d9] | 110 | <para>
|
---|
[658b42d8] | 111 | To test the results, issue: <command>make check</command>.
|
---|
[78865d9] | 112 | </para>
|
---|
[bab92281] | 113 |
|
---|
[8381f5e] | 114 | <!-- libwww-perl/HTTP-Daemon/#21 -->
|
---|
[b51fe6e] | 115 | <para>
|
---|
| 116 | HTTPS tests are known to fail if Perl module IO::Socket::INET6
|
---|
| 117 | is installed.
|
---|
| 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
|
---|
| 213 | unattended operations.
|
---|
| 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>
|
---|