[Klug-general] Cloning Ubuntu

Peter Childs peterachilds at gmail.com
Fri May 4 11:14:21 BST 2007


On 04/05/07, Ben Sutton <bensutton at gmail.com> wrote:
> On 04/05/07, Peter Childs <peterachilds at gmail.com> wrote:
> > But does anyone know how to clone a Ubuntu box so that it has exactly
> > the same packages installed on it as another similar Ubuntu Box, These
> > machines may not be identical so might need different kernels etc.
> > I'm sure there ought to be some apt / dpkg command but I've never worked it out.
>
> I have this bookmarked for such an occasion:
>
> http://www.debianadmin.com/clone-your-ubuntu-installation.html
>
> Please let me know how well it works!
>

Great.

Hmm It does not work (at all what so ever)

sudo dpkg --get-selections | grep '[[:space:]]install$='| awk '{print
$1}' > installedpackages

should read

sudo dpkg --get-selections | grep '[[:space:]]install$'| awk '{print
$1}' > installedpackages

cat installedpackages | xargs sudo aptitude install

then it works at a pinch.

Peter Childs



More information about the Kent mailing list