Monday, May 5, 2008

New ubuntu installation with all softwares from a previous installation

I am using ubuntu Gutsy on my (office)desktop. Recently got a Lenovo T61 at office. Now I want all packages that I installed on my desktop ( which I installed as and when I needed ) to be installed on laptop also. So here is how I did it (by googling of course).

Get the list of all packages installed on your machine using this command:
$ dpkg --get-selections > sw.list

on new machine:
copy sw.list first. Then use following commands to install all these packages.

$ cat sw.list | sudo dpkg --set-selections
$ dselect

Links on internet:
http://ubuntuforums.org/showthread.php?t=261366
http://www.cyberciti.biz/tips/linux-get-list-installed-software-reinstallation-restore.html

No comments: