Repackage and reversion tool