[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">
|
---|
| 11 | <!ENTITY wget-md5sum "316f6f59292c9098ad81fd54f658c579">
|
---|
| 12 | <!ENTITY wget-size "1.6 MB">
|
---|
| 13 | <!ENTITY wget-buildsize "21 MB">
|
---|
[ce4cc4c] | 14 | <!ENTITY wget-time "0.4 SBU">
|
---|
[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 |
|
---|
[48de78d] | 39 | &lfs72_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">
|
---|
| 79 | <xref linkend="openssl"/> or <xref linkend="gnutls"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[db0eb6a] | 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[78865d9] | 83 | <para role="optional">
|
---|
| 84 | <xref linkend="libidn"/>,
|
---|
| 85 | Perl Module HTTP::Server (for the test suite: see the standard Perl
|
---|
| 86 | <xref linkend="perl-standard-install"/>) and
|
---|
| 87 | <ulink url="http://www.inet.no/dante/">Dante</ulink>
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <para condition="html" role="usernotes">
|
---|
| 91 | User Notes: <ulink url="&blfs-wiki;/wget"/>
|
---|
| 92 | </para>
|
---|
[db0eb6a] | 93 | </sect2>
|
---|
[bab92281] | 94 |
|
---|
[db0eb6a] | 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of Wget</title>
|
---|
| 97 |
|
---|
[78865d9] | 98 | <para>
|
---|
| 99 | Install <application>Wget</application> by running the following commands:
|
---|
| 100 | </para>
|
---|
[db0eb6a] | 101 |
|
---|
[78865d9] | 102 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 103 | --sysconfdir=/etc \
|
---|
[ce4cc4c] | 104 | --with-ssl=openssl &&
|
---|
[db0eb6a] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
[78865d9] | 107 | <para>
|
---|
| 108 | To test the results, issue: <command>make check</command>.
|
---|
| 109 | </para>
|
---|
[bab92281] | 110 |
|
---|
[78865d9] | 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
[bab92281] | 114 |
|
---|
[db0eb6a] | 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 116 | </sect2>
|
---|
[bab92281] | 117 |
|
---|
[db0eb6a] | 118 | <sect2 role="commands">
|
---|
| 119 | <title>Command Explanations</title>
|
---|
[bab92281] | 120 |
|
---|
[78865d9] | 121 | <para>
|
---|
| 122 | <parameter>--sysconfdir=/etc</parameter>: This relocates the configuration
|
---|
| 123 | file from <filename class="directory">/usr/etc</filename> to
|
---|
| 124 | <filename class="directory">/etc</filename>.
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | <parameter>--with-ssl=openssl</parameter>: This allows the program to work
|
---|
| 129 | with <xref linkend="openssl"/>. It can be omitted if
|
---|
| 130 | <xref linkend="gnutls"/> is found or the https protocol is not needed.
|
---|
| 131 | </para>
|
---|
[61562907] | 132 |
|
---|
[db0eb6a] | 133 | </sect2>
|
---|
[bab92281] | 134 |
|
---|
[db0eb6a] | 135 | <sect2 role="configuration">
|
---|
| 136 | <title>Configuring Wget</title>
|
---|
| 137 |
|
---|
| 138 | <sect3 id="wget-config">
|
---|
| 139 | <title>Config Files</title>
|
---|
[bab92281] | 140 |
|
---|
[78865d9] | 141 | <para>
|
---|
| 142 | <filename>/etc/wgetrc</filename> and
|
---|
| 143 | <filename>~/.wgetrc</filename>
|
---|
| 144 | </para>
|
---|
[bab92281] | 145 |
|
---|
[db0eb6a] | 146 | <indexterm zone="wget wget-config">
|
---|
| 147 | <primary sortas="e-AA.wgetrc">~/.wgetrc</primary>
|
---|
| 148 | </indexterm>
|
---|
[bab92281] | 149 |
|
---|
[db0eb6a] | 150 | <indexterm zone="wget wget-config">
|
---|
| 151 | <primary sortas="e-etc-wgetrc">/etc/wgetrc</primary>
|
---|
| 152 | </indexterm>
|
---|
[bab92281] | 153 |
|
---|
[78865d9] | 154 | <para>
|
---|
| 155 | If you have installed the <xref linkend="cacerts"/> and you want
|
---|
| 156 | <application>Wget</application> to use them, as the
|
---|
| 157 | <systemitem class="username">root</systemitem> user:
|
---|
| 158 | </para>
|
---|
[bab92281] | 159 |
|
---|
[78865d9] | 160 | <screen role="root"><userinput>echo ca-directory=/etc/ssl/certs >> /etc/wgetrc</userinput></screen>
|
---|
[61562907] | 161 |
|
---|
[db0eb6a] | 162 | </sect3>
|
---|
[61562907] | 163 |
|
---|
[db0eb6a] | 164 | </sect2>
|
---|
[bab92281] | 165 |
|
---|
[db0eb6a] | 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Program</segtitle>
|
---|
[bab92281] | 171 |
|
---|
[db0eb6a] | 172 | <seglistitem>
|
---|
| 173 | <seg>wget</seg>
|
---|
| 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
[bab92281] | 176 |
|
---|
[db0eb6a] | 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 181 |
|
---|
[db0eb6a] | 182 | <varlistentry id="wget-prog">
|
---|
| 183 | <term><command>wget</command></term>
|
---|
| 184 | <listitem>
|
---|
[78865d9] | 185 | <para>
|
---|
| 186 | retrieves files from the Web using the HTTP, HTTPS and FTP
|
---|
| 187 | protocols. It is designed to be non-interactive, for background or
|
---|
| 188 | unattended operations.
|
---|
| 189 | </para>
|
---|
[db0eb6a] | 190 | <indexterm zone="wget wget-prog">
|
---|
| 191 | <primary sortas="b-wget">wget</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
[61562907] | 195 |
|
---|
[db0eb6a] | 196 | </variablelist>
|
---|
[61562907] | 197 |
|
---|
[db0eb6a] | 198 | </sect2>
|
---|
[61562907] | 199 |
|
---|
[f45b1953] | 200 | </sect1>
|
---|