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

I keep /home, /etc, and /usr/local backed up. My hard drive crashed and I reinstalled Ubuntu and copied over my backed-up directories. (Yay for backups!)

I assumed that something in /etc would tell the package manager what I want to have installed. Apparently it doesn't work that way. I would like to re-install all the packages that I had previously installed. Is there something in my backed-up files that would tell me what I had installed?

share|improve this question
up vote 3 down vote accepted

The list of packages that you had installed was kept in /var/lib/dpkg/status, with daily backups of the dpkg database to /var/backups. These directories unfortunately aren't in the list of directories that you backed up.

share|improve this answer
And if I DO have /var/lib/dpkg/status , and restore it - will it restore all the packages that I had? – Erel Segal-Halevi Jul 27 '12 at 7:07
Please answer this. – BigSack Aug 15 '12 at 6:15
in this answer is explained how to restore packages from /var/lib/pdkg/status – Paolo Feb 8 '15 at 11:46

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.