Remove packages from allPackages/packagesIndex in preferences()