This file is indexed.

/usr/share/doc/apt-doc/offline.html/ch3.html is in apt-doc 0.8.16~exp12ubuntu10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

<html>

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">

<title>Using APT Offline - Using APT and wget</title>

<link href="index.html" rel="start">
<link href="ch2.html" rel="prev">
<link href="index.html" rel="next">
<link href="index.html#contents" rel="contents">
<link href="index.html#copyright" rel="copyright">
<link href="ch1.html" rel="chapter" title="1 Introduction">
<link href="ch2.html" rel="chapter" title="2 Using APT on both machines">
<link href="ch3.html" rel="chapter" title="3 Using APT and wget">
<link href="ch1.html#s1.1" rel="section" title="1.1 Overview">
<link href="ch2.html#s2.1" rel="section" title="2.1 Overview">
<link href="ch2.html#s2.2" rel="section" title="2.2 The configuration file">
<link href="ch3.html#s3.1" rel="section" title="3.1 Overview">
<link href="ch3.html#s3.2" rel="section" title="3.2 Operation">

</head>

<body>

<p><a name="ch3"></a></p>
<hr>

<p>
[ <a href="ch2.html">previous</a> ]
[ <a href="index.html#contents">Contents</a> ]
[ <a href="ch1.html">1</a> ]
[ <a href="ch2.html">2</a> ]
[ 3 ]
[ <a href="index.html">next</a> ]
</p>

<hr>

<h1>
Using APT Offline
<br>Chapter 3 - Using APT and wget
</h1>

<hr>

<h2><a name="s3.1"></a>3.1 Overview</h2>

<p>
<em>wget</em> is a popular and portable download tool that can run on nearly
any machine.  Unlike the method above this requires that the Debian machine
already has a list of available packages.
</p>

<p>
The basic idea is to create a disc that has only the archive files downloaded
from the remote site.  This is done by using the --print-uris option to apt-get
and then preparing a wget script to actually fetch the packages.
</p>

<hr>

<h2><a name="s3.2"></a>3.2 Operation</h2>

<p>
Unlike the previous technique no special configuration files are required.  We
merely use the standard APT commands to generate the file list.
</p>

<pre>
      # apt-get dist-upgrade 
      [ Press no when prompted, make sure you are happy with the actions ]
      # apt-get -qq --print-uris dist-upgrade &gt; uris
      # awk '{print &quot;wget -O &quot; $2 &quot; &quot; $1}' &lt; uris &gt; /disc/wget-script
</pre>

<p>
Any command other than dist-upgrade could be used here, including
dselect-upgrade.
</p>

<p>
The /disc/wget-script file will now contain a list of wget commands to execute
in order to fetch the necessary archives.  This script should be run with the
current directory as the disc's mount point so as to save the output on the
disc.
</p>

<p>
The remote machine would do something like
</p>

<pre>
       # cd /disc
       # sh -x ./wget-script
       [ wait.. ]
</pre>

<p>
Once the archives are downloaded and the disc returned to the Debian machine
installation can proceed using,
</p>

<pre>
       # apt-get -o dir::cache::archives=&quot;/disc/&quot; dist-upgrade
</pre>

<p>
Which will use the already fetched archives on the disc.
</p>

<hr>

<p>
[ <a href="ch2.html">previous</a> ]
[ <a href="index.html#contents">Contents</a> ]
[ <a href="ch1.html">1</a> ]
[ <a href="ch2.html">2</a> ]
[ 3 ]
[ <a href="index.html">next</a> ]
</p>

<hr>

<p>
Using APT Offline
</p>

<address>
$Id: offline.sgml,v 1.8 2003/02/12 15:06:41 doogie Exp $<br>
<br>
Jason Gunthorpe <code><a href="mailto:jgg@debian.org">jgg@debian.org</a></code><br>
<br>
</address>
<hr>

</body>

</html>