[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 11:07:59 -0400, Kevin Mark wrote:
> 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 :-)

The Debian Reference suggests this procedure:

http://www.debian.org/doc/manuals/reference/ch-package.en.html#s-record

(I was in a hurry when I wrote the other mail and I could not find the
 relevant section quickly enough then.)

-- 
Regards,
          Florian



Reply to: