`sig
val download_package :
OpamState.Types.t ->
OpamTypes.package ->
[ `Error of unit | `Successful of OpamTypes.generic_file option ]
OpamProcess.job
val extract_package :
OpamState.Types.t ->
OpamTypes.generic_file option -> OpamTypes.package -> unit
val build_and_install_package :
OpamState.Types.t ->
metadata:bool ->
OpamTypes.generic_file option ->
OpamTypes.package -> exn option OpamProcess.job
val removal_needs_download : OpamState.Types.t -> OpamTypes.package -> bool
val remove_package :
OpamState.Types.t ->
metadata:bool ->
?keep_build:bool ->
?silent:bool -> OpamTypes.package -> unit OpamProcess.job
val cleanup_package_artefacts :
OpamState.Types.t -> OpamTypes.package -> unit
val sources_needed :
OpamState.Types.t -> OpamSolver.ActionGraph.t -> OpamTypes.package_set
val update_metadata :
OpamState.Types.t ->
installed:OpamTypes.package_set ->
installed_roots:OpamTypes.package_set ->
reinstall:OpamTypes.package_set -> OpamState.Types.t
end`