code: def record_manifest(self):
          
          data = {}
          data['required_packages'] = self.install_required(type=SYSTEM, verbose=False, list_only=True)
          data['required_packages'].sort()
          data['custom_packages'] = self.install_custom(list_only=True)
          data['custom_packages'].sort()
          data['repositories'] = self.get_repositories()
          return data
docs: Returns a dictionary representing a serialized state of the service.