Rework packages reinstallation.