Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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've removed nagios3 with apt-get remove nagios3 and then removed the files in by using the command sudo rm -R /etc/nagios*

Now when I run apt-get install nagios3 the config files (/etc/nagios3/*) are not present. How can I regenerate them?

This box is on Ubuntu 10.04.

share|improve this question
"removed the files in by using"? I think there is a missing word here. – Faheem Mitha Dec 12 '11 at 4:19
up vote 2 down vote accepted

Purge nagios3. Then reinstall. That will probably work.

apt-get purge nagios3
apt-get install nagios3

The purge will get rid of the config files, which the system didn't delete initially, and so thought were still installed. If purging nagios3 is not an option, then it will be a little more complicated. If that is the case, leave a comment.

share|improve this answer
cool. that helped. also had to do sudo apt-get --purge autoremove and sudo apt-get purge nagios-plugins-basic – cwd Dec 12 '11 at 4:20

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.