Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
High-level execution of user-facing functions like install and upgrade, and wrappers around the pinning commands
val init :
?init_config:OpamFile.InitConfig.t ->
?repo:OpamTypes.repository ->
?bypass_checks:bool ->
OpamTypes.shell ->
OpamTypes.filename ->
[ `ask | `yes | `no ] ->
OpamStateTypes.rw OpamStateTypes.global_state
* OpamStateTypes.unlocked OpamStateTypes.repos_state
* OpamTypes.formula
Initialize the client a consistent state.
val install :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.atom list ->
bool option ->
deps_only:bool ->
upgrade:bool ->
OpamStateTypes.rw OpamStateTypes.switch_state
Install 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 :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.atom list ->
OpamStateTypes.rw OpamStateTypes.switch_state
Reinstall the given set of packages.
val update :
'a OpamStateTypes.global_state ->
repos_only:bool ->
dev_only:bool ->
?all:bool ->
string list ->
OpamStateTypes.unlocked OpamStateTypes.repos_state
Update the local mirrors for the repositories and/or development packages
val upgrade :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.atom list ->
OpamStateTypes.rw OpamStateTypes.switch_state
Find 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 upgrade_t :
?strict_upgrade:bool ->
?auto_install:bool ->
?ask:bool ->
OpamTypes.atom list ->
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamStateTypes.rw OpamStateTypes.switch_state
Low-level version of upgrade
, bypassing the package name sanitization and dev package update, and offering more control
val fixup :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamStateTypes.rw OpamStateTypes.switch_state
Recovers from an inconsistent universe
val remove :
OpamStateTypes.rw OpamStateTypes.switch_state ->
autoremove:bool ->
force:bool ->
OpamTypes.atom list ->
OpamStateTypes.rw OpamStateTypes.switch_state
Remove the given list of packages.
module PIN : sig ... end