def autoremove(jail=None, chroot=None, root=None, dryrun=False):
 opts = ''
 if dryrun:
  opts += 'n'
 else:
  opts += 'y'
 cmd = _pkg(jail, chroot, root)
 cmd.append('autoremove')
 if opts:
  cmd.append(('-' + opts))
 return __salt__['cmd.run'](cmd, output_loglevel='trace', python_shell=False)

def autoremove ( jail = None , chroot = None , root = None , dryrun = False ) : opts = '' if dryrun : opts += 'n' else : opts += 'y' cmd = _pkg ( jail , chroot , root ) cmd . append ( 'autoremove' ) if opts : cmd . append ( ( '-' + opts ) ) return __salt__ [ 'cmd.run' ] ( cmd , output_loglevel = 'trace' , python_shell = False )
delete packages which were automatically installed as dependencies and are not required anymore .