wpkg --force-rollback ...

The --force-rollback option is used to request the system to run a complete rollback in case an installation or a removal fails. By default only the changes applied by the package that fails the installation or removal are rolled back. With the --force-rollback option, all the packages that were being installed or removed are all rolled back to their previous state, if possible.

The rollback feature uses a journal to record all the work that the packager would need to do (unpack, configure, remove, deconfigure) in order to restore the system to its previous state. The rollback operation executes the journal commands in backward order since it saved it in forward order. The journal can be seen as a low level packager script, although it is not recommended that you write such scripts manually.

You may also be interested in using the --tracking-journal option which is used to permanently save the journal in a file. It can be used along the --rollback command.


The use of the --force-all option does not imply the --force-rollback option because it is not the expected default behavior of wpkg.


The --no-force-all, --refuse-all, --no-force-rollback, --refuse-rollback all cancel this feature whatever the position of the different options on the command line.

Syndicate content