Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer

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
1  
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
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.