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

Re: dpkg snapshot



On Sun, Nov 12, 2000 at 04:50:16PM +0100, Sven Burgener wrote:
> On Sun, Nov 12, 2000 at 10:32:47AM -0500, Paindavoine, Matthieu
> (MPAINDAV) wrote:
> > 
> > I have a hosed system, and I'd like to do a clean reinstall... I would like
> > to keep the .deb configuration I had. Is there a way using eg dpkg to take a
> > snapshot of the packages installed now, and feed this file at a later time
> > to select the packages to install?
> 
> a) prior to reinstall:
> 
> 	$ dpkg --get-selections \* > dpkg-selections.txt
> 
> b) save file to (floppy) disk(s)
> 
> c) after having installed the base system:
> 
> 	$ dpkg --set-selections < dpkg-selections.txt

Oops, forgot to mention the following final step:

d) run to apply the changes apt-get:

	$ apt-get dselect-upgrade

Sven
-- 
Have you rebooted your NT box today?



Reply to: