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