Set "history" reason to packages installed during undos.