1

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.

marked as duplicate by Anwar, Takkat, Mitch, Amith KK, Tom Brossman Oct 3 '12 at 21:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

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. – Antoine Rodriguez Sep 23 '12 at 10:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.