wpkg --reconfigure

The --reconfigure command resets the configuration of the specified packages. Only installed packages can be specified after this command.

The process runs the following steps:

1. deconfiguration the installed package by running its prerm script as in a standard upgrade:

prerm upgrade <version>

2. unpack the original configuration files after renaming the existing files as .wpkg-old

3. configure the newly re-installed package and run the postinst script

postinst configure <version>

Since the package itself is not changing the version parameter is the version that is currently installed.

Syndicate content