Remove redundant packages.