remove obsolete packages in install-pkg