OpamClient.SafeAPIThis version of the API can be used concurrently.
OPAM API.
val init :
OpamTypes.repository ->
OpamTypes.compiler ->
OpamTypes.shell ->
OpamTypes.filename ->
[ `ask | `yes | `no ] ->
unitInitialize the client a consistent state.
val list :
print_short:bool ->
filter:[ `all | `installed | `roots | `installable ] ->
order:[ `normal | `depends ] ->
exact_name:bool ->
case_sensitive:bool ->
?depends:OpamTypes.atom list ->
?reverse_depends:bool ->
?recursive_depends:bool ->
?resolve_depends:bool ->
?depopts:bool ->
?depexts:string list ->
?dev:bool ->
string list ->
unitDisplay all available packages that matches any of the regexps.
val info :
fields:string list ->
raw_opam:bool ->
where:bool ->
OpamTypes.atom list ->
unitDisplay a general summary of a collection of packages.
val install : OpamTypes.atom list -> bool option -> bool -> unitInstall the given list of packages. Second argument, if not None, specifies that given packages should be added or removed from the roots. Third argument installs all dependencies but not the packages themselves
val reinstall : OpamTypes.atom list -> unitReinstall the given set of packages.
Refresh the available packages.
val upgrade : OpamTypes.atom list -> unitFind a consistent state where most of the installed packages are upgraded to their latest version, within the given constraints. An empty list means upgrade all installed packages.
val remove : autoremove:bool -> force:bool -> OpamTypes.atom list -> unitRemove the given list of packages.
module CONFIG : sig ... endConfig API.
module REPOSITORY : sig ... endRepository API
module SWITCH : sig ... endSwitch API
module PIN : sig ... endPin API