[clug] what is best way to migrate a whole computer's content to another?

Angus Gratton gus at projectgus.com
Fri Mar 9 23:10:59 MST 2012


On 09/03/12 10:37, Carlo Hamalainen wrote:
> Perhaps make a note of all installed packages on your
> original machine
>
>     dpkg -l | grep '^ii' | cut -f 3 -d ' ' | tr '\n' ' '
>
> so that you can easily do an "apt-get install" on the new one.

Not to disparage homebrewed Unix pipe-fu, but FWIW there's actually
a dpkg command that allows you to do clone installed packages between
machines very easily.

Conveniently (as usual), someone has already blogged about it here:
http://www.hanckmann.net/?q=node/27

(The dpkg man page also helps explain what is going on here.)

Hth.

Cheers,

Angus


More information about the linux mailing list