OS Manuals

/usr/bin/opam-installer

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.

From opam 2.6.1-r1 (os), captured 2026-11-05 by running opam-installer --help (exit 0). permalink

NAME
       opam-installer - Handles (un)installation of package files following
       instructions from opam *.install files.

SYNOPSIS
       opam-installer [OPTION]… [PKG.install]

ARGUMENTS
       PKG.install
           The opam .install file to read for installation instructions

OPTIONS
       --docdir=PATH
           Documentation dir. Relative to prefix or absolute. By default
           $prefix/doc.

       -i, --install
           Install the package (the default)

       --libdir=PATH
           OCaml lib dir. Relative to prefix or absolute. By default
           $prefix/lib ; sometimes setting this to $(ocamlc -where) is
           preferable.

       --mandir=PATH
           Manpages dir. Relative to prefix or absolute. By default
           $prefix/man.

       --name=NAME
           Specify the package name. Used to set install directory under
           `share/', etc. By default, basename of the .install file

       --prefix=PREFIX (absent=/usr/local)
           The prefix to install to. You can use eg '$PREFIX' to output a
           relocatable script

       --script
           Don't execute the commands, but output a shell-script
           (experimental)

       --stubsdir=PATH
           Stubs installation dir. Relative to prefix or absolute. By default
           $libdir/stublibs.

       --topdir=PATH
           Toplevel install dir. Relative to prefix or absolute. By default
           $libdir/toplevel.

       -u, --uninstall, --remove
           Remove the package

COMMON OPTIONS
       --help[=FMT] (default=auto)
           Show this help in format FMT. The value FMT must be one of auto,
           pager, groff or plain. With auto, the format is pager or plain
           whenever the TERM env var is dumb or undefined.

       --version
           Show version information.
Options (12)
OptionDescriptionSource
--docdir PATHDocumentation dir.help + man
-i, --installInstall the package (the default)help + man
--libdir PATHOCaml lib dir.help + man
--mandir PATHManpages dir.help + man
--name NAMESpecify the package name.help + man
--prefix PREFIXThe prefix to install to.help + man
--scriptDon't execute the commands, but output a shell-script (experimental)help + man
--stubsdir PATHStubs installation dir.help + man
--topdir PATHToplevel install dir.help + man
-u, --uninstall, --removeRemove the packagehelp + man
--help FMTShow this help in format FMT.help + man
--versionShow version information.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.