Name

Pkg::GetPackages — Get list of packages (installed, selected, available, to be removed)

Synopsis

list<string> GetPackages ( symbol 'which' ,
  boolean names_only );
 

Parameters

symbol 'which'

defines which packages are returned: `installed all installed packages, `selected returns all selected but not yet installed packages, `available returns all available packages (from the installation source), `removed all packages selected for removal, `locked all locked packages (locked, installed), `taboo all taboo packages (locked, not installed)

boolean names_only

If true, return package names only

Return

list<string>

Description

return list of packages (["pkg1", "pkg2", ...] if names_only==true, ["pkg1 version release arch", "pkg1 version release arch", ... if names_only == false]