@@ -43,6 +43,7 @@ We provide pre-compiled binaries for:
43
43
- macOS (amd64, arm64)
44
44
- FreeBSD (amd64)
45
45
- OpenBSD (amd64)
46
+ - NetBSD (amd64)
46
47
- Windows (amd64)
47
48
(other platforms are available using the other methods below)
48
49
@@ -60,114 +61,58 @@ sudo install <downloaded file> /usr/local/bin/opam
60
61
61
62
## Using your system's package manager
62
63
63
- This is generally the recommended way, ** when available and up-to-date** (you
64
- can check [ here] ( Distribution.html ) the latest
65
- available release per distribution). Here is a list of supported distributions:
64
+ This is generally the recommended way, ** when available and up-to-date** . You
65
+ can check the following table:
66
66
67
- #### Arch Linux
67
+ [ ![ repology package status ] ( https://repology.org/badge/vertical-allrepos/opam.svg?exclude_unsupported=1 )] ( https://repology.org/project/opam/versions )
68
68
69
- [ ![ badge ] ( https://repology.org/badge/version-for-repo/arch/ opam.svg )] ( https://repology.org/project/opam/versions )
69
+ If your distribution is up-to-date you can install opam the following way:
70
70
71
- The [ opam] ( https://www.archlinux.org/packages/extra/x86_64/opam/ )
72
- package is available in the official distribution. To install it simply run:
71
+ #### Arch Linux
73
72
74
73
```
75
74
pacman -S opam
76
75
```
77
76
78
- If you'd like to use the development version there is an [ opam-git] ( https://aur.archlinux.org/packages/opam-git/ )
79
- package available in the [ AUR] ( https://wiki.archlinux.org/index.php/Arch_User_Repository ) .
80
- Assuming you have [ yay] ( https://github.com/Jguer/yay ) installed just run the following command:
81
-
82
- ```
83
- yay -S opam-git
84
- ```
85
-
86
- #### Debian
77
+ #### Debian and Ubuntu
87
78
88
- [ ![ badge] ( https://repology.org/badge/version-for-repo/debian_stable/opam.svg )] ( https://repology.org/project/opam/versions ) [ ![ badge] ( https://repology.org/badge/version-for-repo/debian_testing/opam.svg )] ( https://repology.org/project/opam/versions ) [ ![ badge] ( https://repology.org/badge/version-for-repo/debian_unstable/opam.svg )] ( https://repology.org/project/opam/versions )
89
-
90
- Binary packages of opam are available for the
91
- [ stable] ( http://packages.debian.org/jessie/opam ) ,
92
- [ testing] ( http://packages.debian.org/stretch/opam ) and
93
- [ unstable] ( http://packages.debian.org/sid/opam ) distributions, from the official
94
- repositories. You should be set with:
95
-
96
- ```
97
- apt-get install opam
98
79
```
99
-
100
- #### [ Exherbo] ( http://exherbo.org )
101
-
102
- The
103
- [ ` dev-ocaml/opam ` ] ( http://git.exherbo.org/summer/packages/dev-ocaml/opam/index.html )
104
- package can be installed with the command:
105
-
106
- ```
107
- cave resolve -x dev-ocaml/opam
80
+ apt install opam
108
81
```
109
82
110
- You might need to add the ` ::ocaml-unofficial ` repository first:
111
-
112
- ```
113
- cave resolve -x repository/ocaml-unofficial
114
- ```
115
-
116
- #### [ Fedora] ( http://fedoraproject.org ) , [ CentOS] ( http://centos.org ) and RHEL
117
-
118
- [ ![ Fedora 39] ( https://repology.org/badge/version-for-repo/fedora_39/opam.svg )] ( https://repology.org/project/opam/versions )
119
-
120
- The opam package for Fedora can be installed with the command:
83
+ #### Fedora
121
84
122
85
```
123
86
dnf install opam
124
87
```
125
88
126
- There is not currently a package for CentOS/RHEL. You will need to use our
127
- pre-built binaries, or build from sources.
128
-
129
89
#### Mageia
130
90
131
- [ ![ badge] ( https://repology.org/badge/version-for-repo/mageia_cauldron/opam.svg )] ( https://repology.org/project/opam/versions )
132
-
133
- The opam package for Mageia can be installed with the command:
134
-
135
91
```
136
92
urpmi opam
137
93
```
138
94
139
- #### OpenBSD
95
+ #### Alpine Linux
140
96
141
- [ ![ badge] ( https://repology.org/badge/version-for-repo/openbsd/opam.svg )] ( https://repology.org/project/opam/versions )
97
+ ```
98
+ apk add opam
99
+ ```
142
100
143
- The opam package for OpenBSD can be installed with the command (since OpenBSD 5.7):
101
+ #### OpenBSD
144
102
145
103
```
146
104
pkg_add opam
147
105
```
148
106
149
107
#### FreeBSD
150
108
151
- [ ![ badge] ( https://repology.org/badge/version-for-repo/freebsd/opam.svg )] ( https://repology.org/project/opam/versions )
152
-
153
- Opam is available in the ports and packages tree on FreeBSD 11 or higher.
154
-
155
109
```
156
110
pkg install ocaml-opam
157
111
```
158
112
159
- or to install from source:
160
-
161
- ```
162
- cd /usr/ports/devel/ocaml-opam
163
- make install
164
- ```
165
-
166
113
#### macOS
167
114
168
- [ ![ badge] ( https://repology.org/badge/version-for-repo/homebrew/opam.svg )] ( https://repology.org/project/opam/versions ) [ ![ badge] ( https://repology.org/badge/version-for-repo/macports/opam.svg )] ( https://repology.org/project/opam/versions )
169
-
170
- Opam packages for [ homebrew] ( http://mxcl.github.com/homebrew/ ) and [ MacPorts] ( http://www.macports.org/ ) are available.
115
+ Opam packages for [ Homebrew] ( https://brew.sh/ ) and [ MacPorts] ( http://www.macports.org/ ) are available.
171
116
172
117
```
173
118
# Homebrew
@@ -177,37 +122,21 @@ brew install opam
177
122
port install opam
178
123
```
179
124
180
- See also
181
- [ howto setup Emacs.app] ( https://github.com/ocaml/opam/wiki/Setup-Emacs.app-on-macosx-for-opam-usage )
182
- for Opam usage.
183
-
184
- #### Ubuntu
185
-
186
- [ ![ badge] ( https://repology.org/badge/version-for-repo/ubuntu_24_04/opam.svg )] ( https://repology.org/project/opam/versions )
187
-
188
- ```
189
- apt install opam
190
- ```
191
-
192
125
#### Guix & Guix System
193
126
194
- [ ![ badge] ( https://repology.org/badge/version-for-repo/gnuguix/opam.svg )] ( https://repology.org/project/opam/versions )
195
-
196
- The opam package for [ guix] ( https://www.gnu.org/software/guix/ ) can be installed with the command:
197
-
198
127
```
199
- # Guix
200
128
guix install opam
201
129
```
202
130
203
131
#### Windows
204
132
205
- [ ![ badge] ( https://repology.org/badge/version-for-repo/winget/opam.svg )] ( https://repology.org/project/opam/versions )
206
-
207
133
```
208
134
winget install Git.Git OCaml.opam
209
135
```
210
136
137
+ WinGet the Windows Package Manager is available on Windows 11, modern versions of Windows 10, and Windows Server 2025.
138
+ See the [ official documentation] ( https://learn.microsoft.com/en-us/windows/package-manager/winget/ ) for additional info.
139
+
211
140
## From Sources
212
141
213
142
#### Getting the Sources
@@ -217,12 +146,11 @@ Sources of the latest stable version of opam are available on Github:
217
146
* [ Opam releases on Github] ( https://github.com/ocaml/opam/releases )
218
147
219
148
You can also download the full archives, including opam dependencies (these
220
- don't require any extra downloads, just the OCaml compiler -- 4.02.3 or later
221
- for the latest version):
149
+ don't require any extra downloads):
222
150
223
- * [ 2.2 .0] ( https://github.com/ocaml/opam/releases/download/2.2 .0/opam-full-2.2.0-2 .tar.gz )
224
- - MD5: ba94fd83c0e023b0d3c91857f28b8755
225
- - SHA384: 365eb949bfe18d0f189b35e620fa854628ab3e962721ee43488865456bf80da0dbba037b8fdb3830abb83f64b7c79106
151
+ * [ 2.3 .0] ( https://github.com/ocaml/opam/releases/download/2.3 .0/opam-full-2.3.0 .tar.gz )
152
+ - MD5: 81d029c2b79c53f4d99005df47696bef
153
+ - SHA384: 7c62af375f7fc293236f5ce49c51957f39356a937a578683a79fbe1a3ed9e96b64d97c369206923248cbec62c4c251dc
226
154
227
155
Follow the instructions in the included
228
156
[ ` README.md ` ] ( https://github.com/ocaml/opam#readme ) to get opam built and
0 commit comments