Script to purge packages not referenced by any repositories