Keep package list and reinstall automatically if necessary