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

RE: The future of Debian install??



Craig Sampson wrote (on 12 Mar 2002 at 19:57):

> I may have missed something (sure hope so), but what I'd find
> immensely useful is a way of being able to choose, at install (or
> other) time what packages I want then save this selection 'list'
> to a file so that when I next install Debian on another box I can
> just tell it to use the previously made selections.

Maybe you can adapt this:
===========================
From:	Eric Richardson <eric@milagrosoft.com>
To:	"Sean 'Shaleh' Perry" <shaleh@valinux.com>
Subject:	Re: Debian Reinstall
Date sent:	Wed, 23 May 2001 08:56:08 -0700
Copies to:	"debian-user@lists.debian.org" <debian-
user@lists.debian.org>
Forwarded by:	debian-user@lists.debian.org 
Date forwarded:	Wed, 23 May 2001 18:07:00 +0200 (MET DST)
Organization:	MilagroSoft Inc.

Sean 'Shaleh' Perry wrote:
> 
> On 09-May-2001 Ronan O'Sullivan wrote:
> > Hi there,
> >    I am wondering is there anyway to save your current installed
> >    packages information and when you reinstall for apt or dselect to
> >    know what packages to install or remove to restore your system to
> >    the previous state?
> >
> 
> 2 steps:
> 
> a)
> # dpkg --get-selections|sed -e 's/deinstall$/purge/'|dpkg
> # --set-selections apt-get dselect-upgrade # this removes any lingering
> # packages in your list
> 
> b)
> # dpkg --get-selections|sed -e 's/hold$/install/' > package_list
> # copy package_install /somewhere/safe
> 
> Then, after the install:
> 
> # dpkg --set-selections < package_list
> # apt-get dselect-upgrade
> 
> The sed call is to ensure that even packages on hold get stored
> properly.

This is very clever and effective. I tried it today and it 
worked like a
charm to get a good package list for backup and of course purge
deinstalled packages as per a).

BTW, How can I find why a package is on hold?

Thanks again,
Eric
=========================================================





-- 
-- Tony Crawford
-- tc@crawfords.de
-- +49-3341-30 99 99
-- 



Reply to: