# Module OpamPath.Switch

    module Switch: sig .. end

Switch related paths

    val root : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Root dir: $opam/$switch

    val lock : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

lock file: $opam/lock

    val backup_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

The directory where backups are stored for this switch

    val backup : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

Backup file for state export

    val lib : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.dirname

Library path for a given package: $opam/$switch/lib/$name

    val lib_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Library path: $opam/$switch/lib

    val stublibs : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

DLL paths

    val toplevel : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

toplevel path: $opam/$switch/lib/toplevel

    val doc : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.dirname

Documentation path for a given package: $opam/$switch/doc/$name

    val doc_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Documentation path: $opam/$switch/doc/

    val share_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Shared directory: $opam/$switch/share

    val share : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.dirname

Share directory for a given package: $opam/$switch/share/$package

    val etc_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Etc directory: $opam/$switch/etc

    val etc : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.dirname

Etc directory for a given package: $opam/$switch/etc/$package

    val man_dir : ?num:string -> OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Man pages path: $opam/$switch/man/. The optional `num` argument will add a manN suffix if specified

    val bin : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Installed binaries: $opam/$switch/bin

    val sbin : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Installed system binaries: $opam/$switch/sbin

    val installed : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

List of installed packages with their version: $opam/$switch/installed

    val installed_roots : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

List of packages explicitly installed by the user: $opam/$switch/installed.roots

    val build : OpamPath.t -> OpamTypes.switch -> OpamTypes.package -> OpamTypes.dirname

Temporary folders used to decompress and compile the corresponding archives: $opam/$switch/build/$packages

    val build_ocaml : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Temporary folders used to decompress and compile the OCaml compiler: $opam/$switch/build/ocaml

    val build_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Temporary folder: $opam/$switch/build

    val build_install : OpamPath.t -> OpamTypes.switch -> OpamTypes.package -> OpamTypes.filename

Temporary location of install files: $opam/$switch/build/$package/$name.install

    val build_config : OpamPath.t -> OpamTypes.switch -> OpamTypes.package -> OpamTypes.filename

Temporary location of config files: $opam/$switch/build/$packages/$name.config

    val install : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.filename

Installed files for a given package: $opam/$switch/install/$name.install

    val install_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Installed files: $opam/$switch/install/

    val reinstall : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

Packages to reinstall on next upgrade: $opam/$switch/reinstall

    val config : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.filename

Compile and link flags for a given package: $opam/$switch/lib/$name/opam.config

    val config_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Configuration folder: $opam/$switch/config

    val global_config : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

Global config for the switch: $opam/$switch/config/global-config.config

    val pinned : OpamPath.t -> OpamTypes.switch -> OpamTypes.filename

Pinned package file: $opam/$switch/pinned

    val dev_packages_dir : OpamPath.t -> OpamTypes.switch -> OpamTypes.dirname

Build dir for all pinned packages: $opam/$switch/packages.dev/

    val dev_package : OpamPath.t -> OpamTypes.switch -> OpamTypes.name -> OpamTypes.dirname

Build dir for a given pinned package: $opam/$switch/packages.dev/$name.$version/

    module Overlay: sig .. end