[CLUE-Tech] apt-get dist-upgrade gracefull exit

Timothy C. Klein teece at silverklein.net
Fri Apr 26 22:39:52 MDT 2002


* David Jackson (david.j.jackson at pickledbeans.com) wrote:
> If I kill the apt-get dist-upgrade proecess with a Ctrl-C will it install
> the packages download so far, or roll back the entire process?
> 
> I'm doing an upgrade to woody on a 28k line, and would hate to start over :(
> 

It will start downloading from where it left off, if it has not finished
downloading.  So if it is a 100 MB download, you can stop and start it
anywhere in the process, and it starts where you stopped.

Note, however, that it does not install anything until everything has
been downloaded.  So if your computer is fast, the connection is slow,
the great majority of the time will be spent on downloading.  Once
everything is downloaded, it then unpacks the archives.  Once they are
unpacked, it begins to install them.  The order is not completely
random, either, it installs some things with knowledge of dependencies.
Killing apt while it is unpacking is not a big deal, it will start back up
where it left off.  Killing it once it is actually setting up the debs
is less safe.  It usually seems to work, but I remember once having to
do it and my dpkg and/or apt database got somewhat hosed up.

Tim
--
==============================================
== Timothy Klein || teece at silverklein.net   ==
== ---------------------------------------- ==
== "Hello, World" 17 Errors, 31 Warnings... ==
==============================================



More information about the clue-tech mailing list