@@ -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,56 @@ 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, and the way to install opam thereafter:
66
66
67
- #### Arch Linux
68
-
69
- [ ![ badge] ( https://repology.org/badge/version-for-repo/arch/opam.svg )] ( https://repology.org/project/opam/versions )
67
+ [ ![ repology package status] ( https://repology.org/badge/vertical-allrepos/opam.svg?exclude_unsupported=1 )] ( https://repology.org/project/opam/versions )
70
68
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:
69
+ #### Arch Linux
73
70
74
71
```
75
72
pacman -S opam
76
73
```
77
74
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
87
-
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:
75
+ #### Debian and Ubuntu
95
76
96
77
```
97
- apt-get install opam
98
- ```
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
108
- ```
109
-
110
- You might need to add the ` ::ocaml-unofficial ` repository first:
111
-
112
- ```
113
- cave resolve -x repository/ocaml-unofficial
78
+ apt install opam
114
79
```
115
80
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:
81
+ #### Fedora
121
82
122
83
```
123
84
dnf install opam
124
85
```
125
86
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
87
#### Mageia
130
88
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
89
```
136
90
urpmi opam
137
91
```
138
92
139
- #### OpenBSD
93
+ #### Alpine Linux
140
94
141
- [ ![ badge] ( https://repology.org/badge/version-for-repo/openbsd/opam.svg )] ( https://repology.org/project/opam/versions )
95
+ ```
96
+ apk add opam
97
+ ```
142
98
143
- The opam package for OpenBSD can be installed with the command (since OpenBSD 5.7):
99
+ #### OpenBSD
144
100
145
101
```
146
102
pkg_add opam
147
103
```
148
104
149
105
#### FreeBSD
150
106
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
107
```
156
108
pkg install ocaml-opam
157
109
```
158
110
159
- or to install from source:
160
-
161
- ```
162
- cd /usr/ports/devel/ocaml-opam
163
- make install
164
- ```
165
-
166
111
#### macOS
167
112
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.
113
+ Opam packages for [ Homebrew] ( https://brew.sh/ ) and [ MacPorts] ( http://www.macports.org/ ) are available.
171
114
172
115
```
173
116
# Homebrew
@@ -177,37 +120,21 @@ brew install opam
177
120
port install opam
178
121
```
179
122
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
123
#### Guix & Guix System
193
124
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
125
```
199
- # Guix
200
126
guix install opam
201
127
```
202
128
203
129
#### Windows
204
130
205
- [ ![ badge] ( https://repology.org/badge/version-for-repo/winget/opam.svg )] ( https://repology.org/project/opam/versions )
206
-
207
131
```
208
132
winget install Git.Git OCaml.opam
209
133
```
210
134
135
+ WinGet the Windows Package Manager is available on Windows 11, modern versions of Windows 10, and Windows Server 2025.
136
+ See the [ official documentation] ( https://learn.microsoft.com/en-us/windows/package-manager/winget/ ) for additional info.
137
+
211
138
## From Sources
212
139
213
140
#### Getting the Sources
@@ -217,12 +144,11 @@ Sources of the latest stable version of opam are available on Github:
217
144
* [ Opam releases on Github] ( https://github.com/ocaml/opam/releases )
218
145
219
146
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):
147
+ don't require any extra downloads):
222
148
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
149
+ * [ 2.3 .0] ( https://github.com/ocaml/opam/releases/download/2.3 .0/opam-full-2.3.0 .tar.gz )
150
+ - MD5: 81d029c2b79c53f4d99005df47696bef
151
+ - SHA384: 7c62af375f7fc293236f5ce49c51957f39356a937a578683a79fbe1a3ed9e96b64d97c369206923248cbec62c4c251dc
226
152
227
153
Follow the instructions in the included
228
154
[ ` README.md ` ] ( https://github.com/ocaml/opam#readme ) to get opam built and
0 commit comments