Skip to main content

Reinstall and restore deleted config files in Debian / Ubuntu

 

For some reasons if you mistakenly have removed some configuration files like /etc/snmp/snmpd.conf in my case, the file can be restored reinstalling the package with the –force-confmiss option:

# apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall snmpd

2 thoughts to “Reinstall and restore deleted config files in Debian / Ubuntu”

  1. Thank you so much!!!

    This thing was driving me crazy. I deleted ntp.conf and a reinstall didnt compile a new conf!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.