Linux: how to restore config file using apt-get/aptitude?

Posted by o_O Tync on Server Fault See other posts from Server Fault or by o_O Tync
Published on 2009-11-09T05:52:33Z Indexed on 2011/01/05 17:55 UTC
Read the original article Hit count: 200

I've occasionally lost my config file "/etc/mysql/my.cnf", and want to restore it. The file belongs to package mysql-common which is needed for some vital functionality so I can't just purge && install it: the dependencies would be also uninstalled (or if I can ignore them temporarily, they won't be working).

Is there a way to restore the config file from a package without un-ar-ing the package file?

dpkg-reconfigure mysql-common did not restore it.

© Server Fault or respective owner

Related posts about linux

Related posts about configuration