Possible Duplicate:
Best way to clone an installation (copying to identical hardware)
Best way to backup all settings, list of installed packages, tweaks, etc?

I have a computer that installed ubuntu.And i am going to buy another one .

i using my old computer with ubuntu for a year and i installed a lot of program . and i want to install same packages on my new computer . but i dont want install by one by .

how i can clone programs from old computer to new one ?

thanks for helps.


1 Answer 1


You can backup your package list with following command:

sudo dpkg --get-selections > packages

This will generate a file called "packages" containing the list of installed packages. Then you must copy that file to the new computer and use the following commands to install packages in the "packages" list:

sudo dpkg --set-selections < packages
sudo apt-get update
sudo apt-get -u dselect-upgrade
  • In case of distribution upgrading : some packages have names that include versions and other packages simply disapears. You may have troubles if you change of distribution version. Also be sure to keep your source.list and source.list.d folder copied. Sep 23, 2012 at 10:32

Not the answer you're looking for? Browse other questions tagged .