[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get, upgrade, /var/cache/apt/archives



Antonio Rodriguez <arodriguez@worldnet.att.net> writes:

> There has been a small discussion in the debian-users mailing list about
> how to restore a system that was, in the following order:
> 1. Installed, slink (for example)
> 2. Upgraded (apt-get update, dist-upgrade pointing to frozen)
> 3. A copy of the /var/cache/apt/archives was made in another partition
> 4. The system for some reason is wiped out (surge, stupid mistake,
> whatever)
> Now:
> The system can be brought back to stage 1. easily from the slink CD or
> so. It seems that in order to get to stage 2. another lengthy download
> is necessary, but most of the packages are already somewhere in the hard
> drive. The problem is that the dependencies, order, etc, is not anywhere
> in the /archives, so an average user will be unable to determine what to
> do. Somehow this makes dpkg unusable to some extent for the average user
> to achieve that purpose. Apt-get will probably not be able either, since
> there is no packages.gz
> Questions:
> 1:) What is the best way to make apt-get use the /archives folder to
> perform the upgrade and return the system to stage 2. above?
>
I use apt-move to build a local partial mirror. You can just point
your sources.list there and there ya go... ;-)

> 2:) Perhaps some other feature can be added to apt-get to allow this
> reconstruction to occur in a smooth way? That would save bunches of
> bandwidth, etc, etc...
>
See above.

-- 
Andreas Rottmann (Dru@ICQ, 54523380@ICQ)
Pfeilgasse 4-6/725, A-1080 Wien, Austria, Europe
http://www.penguinpowered.com/~andy/
mailto:a.rottmann@gmx.at
[one of 78,35% Austrians who didn´t vote for Haider!]



Reply to: