def installed_pkgs():
 cmd = 'pkgutil --pkgs'
 return __salt__['cmd.run'](cmd).split('\n')

def installed_pkgs ( ) : cmd = 'pkgutil --pkgs' return __salt__ [ 'cmd.run' ] ( cmd ) . split ( '\n' )
return the list of installed packages on the machine returns: list: list of installed packages cli example: .