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

Re: Configuration DB



On Sat, 07 Aug 2004 15:31:41 -0400, Alec Berryman wrote:

> begin  quotation of Tong on 2004-08-07 14:51:16 -0400:
> 
>> On Sat, 07 Aug 2004 15:15:17 -0400, Alec Berryman wrote:
>> 
>> > begin  quotation of Tong on 2004-08-07 14:20:53 -0400:
>> > 
>> >> I'm new to Debian. Seems that Debian keeps all configuration data in
>> >> a DB.  Is there a way to backup this configuration data, so that
>> >> next time when I have to reinstall Debian, using apt-get install
>> >> <all my package list>, I don't have to answer those hard and tedious
>> >> questions again?
>> > 
>> > Look at the man page for dpkg; particularly, '--get-selections' and
>> > '--set-selections'.
> 
> <snip>
> 
>> The '--get-selections' and '--set-selections' only give your the list of
>> packages, they won't save configuration for you. 
> 
> Pipe the output of `dpkg --get-selections` to a file, copy that over
> to the new computer, and pipe it into `dpkg --set-selections`.  Then
> run apt-get -f install; it'll attempt to install all packages on the
> first computer.  You'll still have to answer configuration questions,
> but you won't need to specify packages.

Yes, that is my question -- is there any way to avoid those hard and
tedious questions, since I've answered them once, and the system should
have kept the answer somewhere, or, Debian just forgets those answers
right away? then how do you do reconfiguration? 







Reply to: