In my configure script, I need to check the installed version of a package <package> using ocamlfind or opam. How do I get this information?
How to get the version of a installed package using ocamlfind or opam?
125 Views Asked by anol At
1
There are 1 best solutions below
Related Questions in OPAM
- Completely clean up local opam package after failed installation
- Installing Dune with the help of Opam
- Different environment of MSYS2 MINGW64 shell as standalone terminal and in Visual Studio Code
- ocaml-lsp-server giving "unbound module" errors
- opam upgrade to most recent version failure
- How to include Z3 in Dune project?
- Opam switch not working: "error Buffer *OCaml* has no process"
- Force OPAM to reinstall a local git repo
- Install z3 library for Ocaml by Cygwin64 (Windows 11)
- How to add a library dependency in a dune project that manages the .opam file without an intermediate build error?
- opam switch install in foreign chroot picks version for host architecture, not guest architecture
- Is there a way to activate the default opam switch on shell startup?
- opam: unknown option `--bare', hence can't initialize
- opam switch install (in foreign chroot with QEMU) is extremely slow, about 75–90 minutes
- opam init fails because curl fails to verify the certificate
Related Questions in OCAMLFIND
- Ocamlfind cannot find package 'zmq'
- Merlin is not picking up dependencies in a nix flake shell
- OCaml Type Matching Error of the project when building
- How to transform the Yojson Library of Ocaml into a .byte file using js_of_ocaml?
- Unbound module Findlib error when I was compilering a Ocaml file which contains "open Findlib"
- Logistic Regression in OCaml
- Problems compiling ocaml project on debian bulleye: undefined reference to shm_unlink and shm_open
- Failde to compile : ocamlfind: Package `xmlm' not found
- How to get the version of a installed package using ocamlfind or opam?
- Type of generated fold, iter and map not coherent with ppx_deriving documentation
- Ocaml syntax error : pattern expected in building zip fuction
- Compiling modules in different directories
- ocamlbuild with Toploop/TopLevel
- Unable to build using Ocamlbuild
- Ocalmlfind cannot find Z3 package
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Using ocamlfind:
ocamlfind query -format %v <package>This information is not directly available when running
ocamlfind query --help, but it is available withocamlfind query -help-format, which displays it among the other format options:Using opam:
opam info -f installed-version <package>It returns
--when the package is not installed.This comes from
opam info --help: