public class Pkg extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Pkg.Info
Information about a package as returned by pkg.info_installed and
pkg.info_available
|
static class |
Pkg.PackageDict
Package dictionary as returned by "pkg.file_dict".
|
static class |
Pkg.PackageInfo
Information about a package as returned by "pkg.search".
|
Modifier and Type | Method and Description |
---|---|
static LocalCall<Pkg.PackageDict> |
fileDict(String... packages) |
static LocalCall<Map<String,Pkg.Info>> |
infoAvailable(String... packages) |
static LocalCall<Map<String,Pkg.Info>> |
infoInstalled(List<String> attributes,
boolean reportErrors,
String... packages)
Call 'pkg.info_installed' API.
|
static LocalCall<Map<String,Object>> |
install(boolean refresh,
List<String> pkgs)
Call 'pkg.install' API.
|
static LocalCall<Map<String,Change<Xor<String,List<Pkg.Info>>>>> |
install(boolean refresh,
List<String> pkgs,
List<String> attributes)
Call 'pkg.install' API.
|
static LocalCall<Map<String,Object>> |
install(boolean refresh,
Map<String,String> pkgs) |
static LocalCall<Map<String,Change<Xor<String,List<Pkg.Info>>>>> |
install(boolean refresh,
Map<String,String> pkgs,
List<String> attributes)
Call 'pkg.install' API.
|
static LocalCall<String> |
latestVersion(String packageName) |
static LocalCall<Map<String,String>> |
latestVersion(String firstPackageName,
String secondPackageName,
String... packages) |
static LocalCall<Map<String,List<String>>> |
listPkgs() |
static LocalCall<Map<String,List<Xor<String,Pkg.Info>>>> |
listPkgs(List<String> attributes)
Call 'pkg.list_pkgs'
|
static LocalCall<Map<String,Object>> |
remove(Map<String,String> pkgs) |
static LocalCall<Map<String,Pkg.PackageInfo>> |
search(String criteria) |
static LocalCall<Boolean> |
upgradeAvailable(String packageName) |
public static LocalCall<Map<String,Pkg.PackageInfo>> search(String criteria)
public static LocalCall<Pkg.PackageDict> fileDict(String... packages)
public static LocalCall<Map<String,List<Xor<String,Pkg.Info>>>> listPkgs(List<String> attributes)
attributes
- list of attributes that should be included in the resultpublic static LocalCall<Map<String,Pkg.Info>> infoInstalled(List<String> attributes, boolean reportErrors, String... packages)
attributes
- list of attributes that should be included in the resultreportErrors
- if true will return an error message instead of corrupted textpackages
- optional give package names, otherwise return info about all packagespublic static LocalCall<Map<String,Object>> install(boolean refresh, List<String> pkgs)
refresh
- refresh repos before installationpkgs
- list of packagespublic static LocalCall<Map<String,Change<Xor<String,List<Pkg.Info>>>>> install(boolean refresh, List<String> pkgs, List<String> attributes)
refresh
- refresh repos before installationpkgs
- list of packagesattributes
- list of attributes that should be included in the resultpublic static LocalCall<Map<String,Object>> install(boolean refresh, Map<String,String> pkgs)
refresh
- set true to perform a refresh before the installationpkgs
- map of packages (name to version) to be installedpublic static LocalCall<Map<String,Change<Xor<String,List<Pkg.Info>>>>> install(boolean refresh, Map<String,String> pkgs, List<String> attributes)
refresh
- refresh repos before installationpkgs
- map of packages (name to version) to be installedattributes
- list of attributes that should be included in the resultpublic static LocalCall<Map<String,Object>> remove(Map<String,String> pkgs)
pkgs
- map of packages (name to version) to be removedCopyright © 2017. All rights reserved.