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.
7z x /path/to/foo.deb
, then7z x data.tar.gz
)....conf.d
folders, and when the package maintainer update it, upgrade process becomes really keen of displaying "config file modified" messages :) The reason is not that important to mention, so I decided to simplify my question