Remove unneeded packages.