Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is there a good way to determine which apt packages were installed by the user/admin (as opposed to getting installed by default upon OS install)? The list doesn't have to be comprehensive - can contain both false positives and false negatives but should help in rebuilding the system to current state after reinstall.

Rationale: I've decided my eeebuntu netbook really needs OS reinstall. The original eeebuntu I have installed was a rather early version. Incremental updates fix some problems, reintroduce others. New releases are always more polished than updates to the old ones. Dist-upgrade fails in spectacular manner. Plus I have accumulated a lot of cruft, software I don't need, junk lurking in never-erased temps, and so on. But I'm prety happy with most of software base I have now, and I hate the typical post-reinstall phase of "I don't have this? How quaint, need to install it!". I can backup user data just well but I really need a list of all the custom software I have installed over the years to rebuild it.

share|improve this question
up vote 2 down vote accepted

Just grab a list of all installed packages and install them all later. If it already installed, it will be skipped over.

dpkg -l | grep ii | awk '{print $2}'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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