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

Re: Replicate installed packages to new system



On Fri, Apr 13, 2007 at 04:09:00PM +0200, Florian Kulzer wrote:
> On Fri, Apr 13, 2007 at 09:16:02 -0400, Kevin Mark wrote:
> > On Thu, Apr 12, 2007 at 11:46:28AM -0700, Jeff D wrote:
> 
> [...]
> 
> > > on first sytsem:
> > > dpkg --get-selections > selections.txt
> > > on new base install:
> > > copy over selections.txt
> > > dpkg --set-selections < selections.txt
> > > dselect update
> > > apt-get dselect-upgrade
> >
> > This is one of the prefered way but debian doesn't afaik have a way to
> > include such info as your currect configurations. So this will install
> > the packages but then you have to answer the debconf questions and then
> > do the final configurations to files in /etc or elsewhere.
> 
> The debconf settings can be transferred with
> 
> debconf-get-selections (from package debconf-utils)
> 
> and
> 
> debconf-set-selections (from package debconf itself)
> 
My understanding of Debconf is that they represent the initial setting
of a package. How would you make them take affect for the packages?
Would you:
old% dpkg --get-selection > selections.txt
old% debconf-get-selections > debconf-selections.txt
new% dpkg  --set-selections > selections.txt
new% dselect update
new% apt-get dselect-upgrade
new% debconf-set-selections < debconf-selections.txt
new% dpkg-reconfigure --all

any comments appreciated :-)
-- 
|  .''`.  == Debian GNU/Linux == |       my web site:           |
| : :' :      The  Universal     |mysite.verizon.net/kevin.mark/|
| `. `'      Operating System    | go to counter.li.org and     |
|   `-    http://www.debian.org/ |    be counted! #238656       |
|  my keyserver: subkeys.pgp.net |     my NPO: cfsg.org         |
|join the new debian-community.org to help Debian!              |
|_______  Unless I ask to be CCd, assume I am subscribed _______|

Attachment: signature.asc
Description: Digital signature


Reply to: