|
871.
|
|
|
# export APT_CONFIG="/disc/apt.conf"
# apt-get update
[ APT fetches the package files ]
# apt-get dist-upgrade
[ APT fetches all the packages needed to upgrade the target machine ]
|
|
|
type: Content of: <book><chapter><section><screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
872.
|
|
|
The dist-upgrade command can be replaced with any other standard APT commands, particularly dselect-upgrade. You can even use an APT front end such as <emphasis>dselect</emphasis>. However this presents a problem in communicating your selections back to the local computer.
|
|
|
type: Content of: <book><chapter><section><para>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
873.
|
|
|
Now the disc contains all of the index files and archives needed to upgrade the target machine. Take the disc back and run:
|
|
|
type: Content of: <book><chapter><section><para>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
874.
|
|
|
# export APT_CONFIG="/disc/apt.conf"
# apt-get check
[ APT generates a local copy of the cache files ]
# apt-get --no-d -o dir::state::status=/var/lib/dpkg/status dist-upgrade
[ Or any other APT command ]
|
|
|
type: Content of: <book><chapter><section><screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
875.
|
|
|
It is necessary for proper function to re-specify the status file to be the local one. This is very important!
|
|
|
type: Content of: <book><chapter><section><para>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
876.
|
|
|
If you are using dselect you can do the very risky operation of copying disc/status to /var/lib/dpkg/status so that any selections you made on the remote machine are updated. I highly recommend that people only make selections on the local machine - but this may not always be possible. DO NOT copy the status file if dpkg or APT have been run in the mean time!!
|
|
|
type: Content of: <book><chapter><section><para>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
877.
|
|
|
Using APT and wget
|
|
|
type: Content of: <book><chapter><title>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
878.
|
|
|
<emphasis>wget</emphasis> 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.
|
|
|
type: Content of: <book><chapter><section><para>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
879.
|
|
|
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.
|
|
|
type: Content of: <book><chapter><section><para>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|
|
880.
|
|
|
Operation
|
|
|
type: Content of: <book><chapter><section><title>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
offline.dbk
|