Hi Sean,

> On the point of effectively cloning an Ubuntu or Debian instance in
> terms of the installed packages after a clean install, I have used
> this method in the past:
> 
> - run the command 'dpkg –get-selections > ./selectionfile' on the
> machine to be cloned
> - when the base install has finished on the other machine copy the
> “selectionfile” across to it (or stash it in your /home partition)
> - update the repositories according to your requirements and then run
> the command 'dpkg –set-selections < ./selectionfile && apt-get
> dselect-upgrade' on the new build

I was going to suggest something similar.  It may be possible in theory
for the above to try and install a package that has deliberately been
dropped between releases, or has been superceded by something that
conflicts, I'm not sure.

A variation is to get a sorted list of installed packages before
upgrading,

    aptitude search -F %p '~i' | sort >before

and again after, and then investigate the ones that were installed
before but not after to see whether they should be installed again.

    comm -23 before after

Cheers,
Ralph.


--
Next meeting:  Crown Hotel, Blandford Forum, Tuesday 2010-11-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to