Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.