Mark packages which have not been installed manually as automatic

This will help later in removing cruft packages.