OpamPath

# Module OpamPath

    module OpamPath: sig .. end

The various paths where OPAM configuration files are stored.

## Global paths

    type t = OpamTypes.dirname

Type of path root

    val root : unit -> t

Default root path

    val state_cache : t -> OpamTypes.filename

State cache

    val update_cache : t -> OpamTypes.filename

Update cache

    val lock : t -> OpamTypes.filename

lock file

    val config : t -> OpamTypes.filename

Main configuration file: $opam/config

    val aliases : t -> OpamTypes.filename

Compiler aliases

    val packages_dir : t -> OpamTypes.dirname

Package directroy $opam/packages/

    val packages : t -> OpamTypes.package -> OpamTypes.dirname

Package sub-directory $opam/packages/$NAME/$NAME.$VERSION/

    val opam : t -> OpamTypes.package -> OpamTypes.filename

OPAM files: $opam/packages/$NAME/$NAME.$VERSION/opam

    val url : t -> OpamTypes.package -> OpamTypes.filename

URL files: $opam/packages/$NAME/$NAME.$VERSION/url

    val files : t -> OpamTypes.package -> OpamTypes.dirname

Additional files: $opam/packages/$NAME/$NAME.$VERSION/files

    val dev_packages_dir : t -> OpamTypes.dirname

Temporary folder for dev packages $opam/packages.dev/

    val dev_package : t -> OpamTypes.package -> OpamTypes.dirname

Temporary folder for dev packages $opam/packages.dev/$NAME.$VERSION/

    val descr : t -> OpamTypes.package -> OpamTypes.filename

Description file: $opam/packages/$NAME/$NAME.$VERSION/descr

    val archives_dir : t -> OpamTypes.dirname

Archives dir

    val archive : t -> OpamTypes.package -> OpamTypes.filename

Archive file: $opam/archives/$NAME.$VERSION+opam.tar.gz

    val compiler_comp : t -> OpamTypes.compiler -> OpamTypes.filename

Compiler files: $opam/compilers/$VERSION/$COMP.comp

    val compiler_descr : t -> OpamTypes.compiler -> OpamTypes.filename

Compiler description files: $opam/compilers/$VERSION/$COMP.descr

    val compilers_dir : t -> OpamTypes.dirname

Compiler files: $opam/compilers/

    val compilers : t -> OpamTypes.compiler -> OpamTypes.dirname

Compiler subdir $opam/compilers/$VERSION/$COMP

    val package_index : t -> OpamTypes.filename

Return the repository index: $opam/repo/package-index

    val compiler_index : t -> OpamTypes.filename

Return the repository index: $opam/repo/compiler-index

    val init : t -> OpamTypes.dirname

Init scripts

    val log : t -> OpamTypes.dirname

Log dir $opam/log

    val backup_dir : t -> OpamTypes.dirname

The directory where global backups are stored

    val backup : t -> OpamTypes.filename

Backup file for state export

    module Switch: sig .. end

Switch related paths

    module Repository: sig .. end

Repository paths