Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,8 @@ Here is a full example:
> Here is an example of an ordered sequence: `~~`, `~`, `~beta2`, `~beta10`,
> `0.1`, `1.0~beta`, `1.0`, `1.0-test`, `1.0.1`, `1.0.10`, `dev`, `trunk`.

For quick sanity checks, you can compare package versions using the OCaml REPL:

```
#use "topfind";;
#require "opam-core";;
# OpamVersionCompare.compare "1.2.10" "1.2.9";;
- : int = 1
```

You can also compare package versions using the `opam` command line (available
from opam version `2.4.0`):
For quick sanity checks, you can compare package versions using the `opam`
command line (available from opam version `2.4.0`):

```shell
$ opam admin compare-versions 1.2.10 1.2.9
Expand All @@ -401,6 +392,9 @@ $ opam admin compare-versions 0.0.9 --lt 0.0.10

Refer to the command help page for more details.

You can also use the [OpamVersionCompare](/doc/api/opam-core/OpamVersionCompare) API
for opam < `2.4.0` users.

### Variables

#### Usage
Expand Down
Loading