X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/dd80ca3ca82976b94244a6d05092da5029fa0107..3c124dde9567dd8c45d271bf2eaadffa5754f7d9:/doc/method.sgml diff --git a/doc/method.sgml b/doc/method.sgml index 756dce87f..ae4b713f1 100644 --- a/doc/method.sgml +++ b/doc/method.sgml @@ -4,7 +4,7 @@
-The APT method interface allows APT to aquire archive files (.deb), index
-files (Packages, Revision, Mirrors) and source files (.tar.gz, .diff). It
+The APT method interface allows APT to acquire archive files (.deb), index
+files (Packages, Release, Mirrors) and source files (.tar.gz, .diff). It
is a general, extensible system designed to satisfy all of these
requirements:
@@ -82,7 +82,7 @@ Universal Resource Identifier (URI) is a super-set of the familiar URL
syntax used by web browsers. It consists of an access specification
followed by a specific location in that access space. The form is
<access>:<location>. Network addresses are given with the form
-<access>://[<user>:<pas>>@]hostname[:port]/<location>.
+<access>://[<user>[:<pas>]@]hostname[:port]/<location>.
Some examples:
-The basic startup sequence depends on how the method is invoked. If any
-command line arguments are passed then the method should start in
-automatic mode. This facility is provided soley to make the methods
-easier to test and perhaps use outside of APT. Upon startup the method
-will print out a header describing its capabilities and requirements.
-After that it either begins processing the command line arugments and
-exits when done or waits for commands to be fed to it.
-
Throught operation of the method communication is done via http
style plain text. Specifically RFC-822 (like the Package file) fields
@@ -164,18 +155,17 @@ status code is an informational string provided for visual debugging.
The flow of messages starts with the method sending out a
100 Capabilities> and APT sending out a 601 Configuration>.
-After that APT begins sending 600 URI Aquire> and the method
+After that APT begins sending 600 URI Acquire> and the method
sends out 200 URI Start>, 201 URI Done> or
400 URI Failure>. No syncronization is performed, it is expected
-that APT will send 600 URI Aquire> messages at -any- time and
+that APT will send 600 URI Acquire> messages at -any- time and
that the method should queue the messages. This allows methods like http
to pipeline requests to the remote server. It should be noted however
that APT will buffer messages so it is not neccessary for the method
@@ -208,6 +198,7 @@ The following is a short index of the header fields that are supported
+The methods supplied by the stock apt are:
+
+The two internal methods, copy and gzip, are used by the acquire code to
+parallize and simplify the automatic decompression of package files as well
+as copying package files around the file system. Both methods can be seen to
+act the same except that one decompresses on the fly. APT uses them by
+generating a copy URI that is formed identically to a file URI. The destination
+file is send as normal. The method then takes the file specified by the
+URI and writes it to the destination file. A typical set of operations may
+be:
+
+The http method implements a fully featured HTTP/1.1 client that supports +deep pipelining and reget. It works best when coupled with an apache 1.3 +server. The file method simply generates failures or success responses with +the filename field set to the proper location. The cdrom method acts the same +except that it checks that the mount point has a valid cdrom in it. It does +this by (effectively) computing a md5 hash of 'ls -l' on the mountpoint.