Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Best way to backup all settings, list of installed packages, tweaks, etc?

I currently have Ubuntu 10.10 installed on my laptop. Configured just the way I like it. Now I need to reinstall everything because I have a need to encrypt my whole hard drive and on Ubuntu, that can only be done using the alternate CD. Question is what would be a good way to reinstall everything including sources and PPA's after encryption?

share|improve this question

marked as duplicate by Marco Ceppi Jun 5 '11 at 19:50

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.

up vote 4 down vote accepted
  1. Find some removable medium, e.g. a flash drive.
  2. Save /etc/apt/sources.list and every file in /etc/apt/sources.list.d/ to it.
  3. Open System > Administration > Synaptic Package Manager. Go to File > Save Markings As... , check the box labeled "Save full state, not only changes", and save it to the removable medium. This file is basically a list of every single package you have installed.

Once you've reinstalled:

  1. Restore your /etc/apt/sources.list and contents of /etc/apt/sources.list.d/ to the computer.
  2. Open Synaptic again, and press Reload.
  3. Still in Synaptic, go to File > Read Markings. Open the markings file you saved previously. Then press Apply, sit back, and relax.
share|improve this answer
I found this script at…. Worked great. – Dan Nov 19 '10 at 15:58

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