Sunday, April 12, 2009

How To Re-Install Installed Packages From Previous Installation of Ubuntu

You can run the following commands to copy your installed app list and then import it to the new install. It won't carry over the personal settings but it will bring over the installed programs. The downside is that if there are apps that you have installed but don't really want on a clean install they will be present as well.

Create list and copy it somewhere that won't be reformatted during the new install:
Code:

dpkg --get-selections | grep -v 'deinstall' > ~/Desktop/installed_packages.txt

Copy installed_packages.txt to the new install Desktop, then run:
Code:

sudo dpkg --clear-selections
sudo dpkg --set-selections < ~/Desktop/installed_packages.txt
sudo apt-get update
sudo apt-get dselect-upgrade

No comments: