Super User is a question and answer site for computer enthusiasts and power users. 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

I have a system that will not boot as /usr has been destroyed and I would like to get a list of installed packages before re-installing. I know that it's possible to get this using dpkg or apt, but I cannot run those.

Where in the filesystem is this information stored and what's the best way to get a list of installed apps from the files?

share|improve this question
up vote 2 down vote accepted

I think you are looking for /var/lib/dpkg/status.

share|improve this answer
That looks like it, thanks! – john Jun 25 '10 at 13:56

You could also take a look at /var/apt/cache/packages where all downloaded packages are cached. However, if a package was deleted, it would still remain there. And one more important thing: if you have already done a apt-get clean then it has already been cleaned.

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.