[Klug-general] Cloning Ubuntu

Peter Childs peterachilds at gmail.com
Fri May 4 11:46:17 BST 2007


On 04/05/07, Peter Childs <peterachilds at gmail.com> wrote:
> 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
>

Oh and you need a pass -y to aptitude otherwise it aborts after
calculating which packages it needs.
In short for such simple instructions it does not work at all!

Peter.



More information about the Kent mailing list