Re: Reinstalling Packages after Rebuilding System with Etch
- From: Andrew Reid <reidac@xxxxxxxxxxxxxxxx>
- Date: Mon, 24 Nov 2008 21:13:18 -0500
On Monday 24 November 2008 15:05, Martin McCormick wrote:
I am going to backup my sarge system, install with the
etch-and-a-half CDROM and then I want to put back all the extra
packages such as alsa, calc and many more that I have installed
over time but, of course, do this as automatically as practical
as well as get the etch versions of everything.
The plan is to do dpkg -l on the existing system to list
everything that is installed and then use dpkg to go get
comparable packages to replace what was there before.
A. Will this work?
B. Is there a better text-based way?
I have done this using
dpkg --get-selections >file
... on the original machine, to record the package state, and
then using the sequence:
dpkg --clear-selections
dpkg --set-selections < file
apt-get dselect-upgrade
This particular sequence will identically clone the package
state of the system -- you probably don't want that, since that
would remove your hard-won new kernel, so you might want to skip
the clear-selections step, and/or you may want to edit the
file.
I think in either case, installing already-installed packages
is harmless.
-- A.
--
Andrew Reid / reidac@xxxxxxxxxxxxxxxx
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: Reinstalling Packages after Rebuilding System with Etch
- From: Andrew Reid
- Re: Reinstalling Packages after Rebuilding System with Etch
- References:
- Reinstalling Packages after Rebuilding System with Etch
- From: Martin McCormick
- Reinstalling Packages after Rebuilding System with Etch
- Prev by Date: Re: Q: List Policy
- Next by Date: Re: Reinstalling Packages after Rebuilding System with Etch
- Previous by thread: Reinstalling Packages after Rebuilding System with Etch
- Next by thread: Re: Reinstalling Packages after Rebuilding System with Etch
- Index(es):
Relevant Pages
|