def purged(name, version=None, pkgs=None, normalize=True, ignore_epoch=False, **kwargs):
 kwargs['saltenv'] = __env__
 try:
  return _uninstall(action='purge', name=name, version=version, pkgs=pkgs, normalize=normalize, ignore_epoch=ignore_epoch, **kwargs)
 except CommandExecutionError as exc:
  ret = {'name': name, 'result': False}
  if exc.info:
   ret['changes'] = exc.info.get('changes', {})
   ret['comment'] = exc.strerror_without_changes
  else:
   ret['changes'] = {}
   ret['comment'] = 'An error was encountered while purging package(s): {0}'.format(exc)
  return ret

def purged ( name , version = None , pkgs = None , normalize = True , ignore_epoch = False , ** kwargs ) : kwargs [ 'saltenv' ] = __env__ try : return _uninstall ( action = 'purge' , name = name , version = version , pkgs = pkgs , normalize = normalize , ignore_epoch = ignore_epoch , ** kwargs ) except CommandExecutionError as exc : ret = { 'name' : name , 'result' : False } if exc . info : ret [ 'changes' ] = exc . info . get ( 'changes' , { } ) ret [ 'comment' ] = exc . strerror_without_changes else : ret [ 'changes' ] = { } ret [ 'comment' ] = 'An error was encountered while purging package(s): {0}' . format ( exc ) return ret
verify that a package is not installed .