Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am on ubuntu 10.04, somehow I deleted all the files in /usr/lib/apache2/modules, is there a way I can get them back or set it to default installation?

share|improve this question
1  
Restore from your backup. –  John Gardeniers Aug 8 '10 at 21:26
add comment

1 Answer

To generate a list of the apache related packages you have installed:

 $ dpkg -l | grep apache

To search the files that are associated with each package:

$ dpkg -L <package name> | grep  /usr/lib/apache2/modules

To reinstall packages that match the search:

$ sudo apt-get --reinstall install <package name>
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.