1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY wget-download-http
|
---|
8 | "http://ftp.gnu.org/gnu/wget/wget-&wget-version;.tar.xz">
|
---|
9 | <!ENTITY wget-download-ftp
|
---|
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">
|
---|
14 | <!ENTITY wget-time "0.4 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="wget" xreflabel="Wget-&wget-version;">
|
---|
18 | <?dbhtml filename="wget.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>Wget-&wget-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="wget">
|
---|
28 | <primary sortas="a-Wget">Wget</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to Wget</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | The <application>Wget</application> package contains a utility useful for
|
---|
36 | non-interactive downloading of files from the Web.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs74_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&wget-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&wget-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &wget-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &wget-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &wget-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &wget-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
76 | <itemizedlist spacing="compact">
|
---|
77 | <listitem>
|
---|
78 | <para>
|
---|
79 | Required patch:
|
---|
80 | <ulink url="&patch-root;/wget-&wget-version;-texi2pod-1.patch"/>
|
---|
81 | </para>
|
---|
82 | </listitem>
|
---|
83 | </itemizedlist>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect3">Wget Dependencies</bridgehead>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
88 | <para role="recommended">
|
---|
89 | <xref linkend="openssl"/> or <xref linkend="gnutls"/>
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
93 | <para role="optional">
|
---|
94 | <xref linkend="libidn"/>,
|
---|
95 | <xref linkend="pcre"/>,
|
---|
96 | <xref linkend="perl-lwp"/> (required for the majority of the test suite), and
|
---|
97 | <ulink url="http://www.inet.no/dante/">Dante</ulink>
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <para condition="html" role="usernotes">
|
---|
101 | User Notes: <ulink url="&blfs-wiki;/wget"/>
|
---|
102 | </para>
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="installation">
|
---|
106 | <title>Installation of Wget</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Install <application>Wget</application> by running the following commands:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen><userinput>patch -Np1 -i ../wget-&wget-version;-texi2pod-1.patch &&
|
---|
113 |
|
---|
114 | ./configure --prefix=/usr \
|
---|
115 | --sysconfdir=/etc \
|
---|
116 | --with-ssl=openssl &&
|
---|
117 | make</userinput></screen>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | To test the results, issue: <command>make check</command>.
|
---|
121 | </para>
|
---|
122 |
|
---|
123 | <para>
|
---|
124 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="commands">
|
---|
131 | <title>Command Explanations</title>
|
---|
132 |
|
---|
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>
|
---|
140 | <parameter>--with-ssl=openssl</parameter>: This allows the program to work
|
---|
141 | with <xref linkend="openssl"/>. It can be omitted if
|
---|
142 | <xref linkend="gnutls"/> is found or the HTTPS protocol is not needed.
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | </sect2>
|
---|
146 |
|
---|
147 | <sect2 role="configuration">
|
---|
148 | <title>Configuring Wget</title>
|
---|
149 |
|
---|
150 | <sect3 id="wget-config">
|
---|
151 | <title>Config Files</title>
|
---|
152 |
|
---|
153 | <para>
|
---|
154 | <filename>/etc/wgetrc</filename> and
|
---|
155 | <filename>~/.wgetrc</filename>
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | <indexterm zone="wget wget-config">
|
---|
159 | <primary sortas="e-AA.wgetrc">~/.wgetrc</primary>
|
---|
160 | </indexterm>
|
---|
161 |
|
---|
162 | <indexterm zone="wget wget-config">
|
---|
163 | <primary sortas="e-etc-wgetrc">/etc/wgetrc</primary>
|
---|
164 | </indexterm>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | If you have installed the <xref linkend="cacerts"/> and you want
|
---|
168 | <application>Wget</application> to use them, as the
|
---|
169 | <systemitem class="username">root</systemitem> user:
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | <screen role="root"><userinput>echo ca-directory=/etc/ssl/certs >> /etc/wgetrc</userinput></screen>
|
---|
173 |
|
---|
174 | </sect3>
|
---|
175 |
|
---|
176 | </sect2>
|
---|
177 |
|
---|
178 | <sect2 role="content">
|
---|
179 | <title>Contents</title>
|
---|
180 |
|
---|
181 | <segmentedlist>
|
---|
182 | <segtitle>Installed Program</segtitle>
|
---|
183 | <segtitle>Installed Libraries</segtitle>
|
---|
184 | <segtitle>Installed Directories</segtitle>
|
---|
185 |
|
---|
186 | <seglistitem>
|
---|
187 | <seg>
|
---|
188 | wget
|
---|
189 | </seg>
|
---|
190 | <seg>
|
---|
191 | None
|
---|
192 | </seg>
|
---|
193 | <seg>
|
---|
194 | None
|
---|
195 | </seg>
|
---|
196 | </seglistitem>
|
---|
197 | </segmentedlist>
|
---|
198 |
|
---|
199 | <variablelist>
|
---|
200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
201 | <?dbfo list-presentation="list"?>
|
---|
202 | <?dbhtml list-presentation="table"?>
|
---|
203 |
|
---|
204 | <varlistentry id="wget-prog">
|
---|
205 | <term><command>wget</command></term>
|
---|
206 | <listitem>
|
---|
207 | <para>
|
---|
208 | retrieves files from the Web using the HTTP, HTTPS and FTP
|
---|
209 | protocols. It is designed to be non-interactive, for background or
|
---|
210 | unattended operations.
|
---|
211 | </para>
|
---|
212 | <indexterm zone="wget wget-prog">
|
---|
213 | <primary sortas="b-wget">wget</primary>
|
---|
214 | </indexterm>
|
---|
215 | </listitem>
|
---|
216 | </varlistentry>
|
---|
217 |
|
---|
218 | </variablelist>
|
---|
219 |
|
---|
220 | </sect2>
|
---|
221 |
|
---|
222 | </sect1>
|
---|