Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list current package versions in OPAM?

Tags:

ocaml

opam

opam list -a lists all packages currently available at OPAM, but does not display the version number for packages which are not currently installed, as per the opam list --help output:

(...) the output format displays one package per line, and each line contains the name of the package, the installed version or -- if the package is not installed, (...)

How can I list all packages including their version numbers?

like image 570
anol Avatar asked Feb 08 '23 19:02

anol


1 Answers

Use opam info <packagename>.

I guess opam list does only prints the versions of already installed packages because of the package dependencies. Listing the latest versions of packages, for example, of not-yet-installed packages is not quite useful.

like image 143
camlspotter Avatar answered Feb 11 '23 12:02

camlspotter