Skip to content

Commit 823731e

Browse files
MONGOCRYPT-840 final release packages are now published in a "release" channel, rather than a version-specific channel in the PPA (mongodb#1133)
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
1 parent caa6bb7 commit 823731e

2 files changed

Lines changed: 21 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
6+
### Changed
7+
8+
- Final release packages in the PPA are now available by specifying `release` in the repository configuration in place of the major/minor version (e.g., `1.17`). Details in `README.md`.
9+
510
### Removed
611

712
- The configure-time CMake parameter `ENABLE_WINDOWS_STATIC_RUNTIME` has been

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,14 @@ See [releasing](./doc/releasing.md).
105105
## Installing libmongocrypt From Distribution Packages ##
106106
Distribution packages (i.e., .deb/.rpm) are built and published for several Linux distributions. The installation of these packages for supported platforms is documented here.
107107

108-
### Unstable Development Distribution Packages ###
109-
To install the latest unstable development package, change `1.17` to `development` in the package URLs listed in the subsequent instructions. For example, `https://libmongocrypt.s3.amazonaws.com/apt/ubuntu <release>/libmongocrypt/1.17` in the instructions would become `https://libmongocrypt.s3.amazonaws.com/apt/ubuntu <release>/libmongocrypt/development`. Do not use the unstable version of libmongocrypt in a production environment.
108+
### Package Publication Channels ###
109+
The libmongocrypt project publishes packages in three different channels: `release`, `testing`, and `development`. The channel descriptions are:
110+
111+
- `release`: packages representing final releases, having version numbers like `1.17.2`, `1.18.0`, etc.
112+
- `testing`: packages representing pre-releases (e.g., alpha and beta versions); this channel is currently dormant
113+
- `development`: packages created from each build which passes CI, having version numbers like `1.17.3~<date>+git<commit-hash>`; these packages are not considered suitable for production use
114+
115+
In the below sections, replace the placeholder `<channel>` with the value that best matches your particular needs.
110116

111117
### .deb Packages (Debian and Ubuntu) ###
112118

@@ -144,16 +150,16 @@ First, import the public key used to sign the package repositories:
144150
sudo sh -c 'curl -s --location https://pgp.mongodb.com/libmongocrypt.asc | gpg --dearmor >/etc/apt/trusted.gpg.d/libmongocrypt.gpg'
145151
```
146152

147-
Second, create a list entry for the repository. For Ubuntu systems (be sure to change `<release>` to `xenial`, `bionic`, `focal`, or `jammy`, as appropriate to your system):
153+
Second, create a list entry for the repository. For Ubuntu systems (be sure to change `<release>` to `xenial`, `bionic`, `focal`, `jammy`, or `noble` as appropriate to your system):
148154

149155
```
150-
echo "deb https://libmongocrypt.s3.amazonaws.com/apt/ubuntu <release>/libmongocrypt/1.17 universe" | sudo tee /etc/apt/sources.list.d/libmongocrypt.list
156+
echo "deb https://libmongocrypt.s3.amazonaws.com/apt/ubuntu <release>/libmongocrypt/<channel> universe" | sudo tee /etc/apt/sources.list.d/libmongocrypt.list
151157
```
152158

153159
For Debian systems (be sure to change `<release>` to `stretch`, `buster`, `bullseye`, `bookworm`, or `trixie` as appropriate to your system):
154160

155161
```
156-
echo "deb https://libmongocrypt.s3.amazonaws.com/apt/debian <release>/libmongocrypt/1.17 main" | sudo tee /etc/apt/sources.list.d/libmongocrypt.list
162+
echo "deb https://libmongocrypt.s3.amazonaws.com/apt/debian <release>/libmongocrypt/<channel> main" | sudo tee /etc/apt/sources.list.d/libmongocrypt.list
157163
```
158164

159165
#### Package installation ####
@@ -176,7 +182,7 @@ Create the file `/etc/yum.repos.d/libmongocrypt.repo` with contents:
176182
```
177183
[libmongocrypt]
178184
name=libmongocrypt repository
179-
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/redhat/$releasever/libmongocrypt/1.17/x86_64
185+
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/redhat/$releasever/libmongocrypt/<channel>/x86_64
180186
gpgcheck=1
181187
enabled=1
182188
gpgkey=https://pgp.mongodb.com/libmongocrypt.asc
@@ -195,7 +201,7 @@ Create the file `/etc/yum.repos.d/libmongocrypt.repo` with contents:
195201
```
196202
[libmongocrypt]
197203
name=libmongocrypt repository
198-
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/amazon/2023/libmongocrypt/1.17/x86_64
204+
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/amazon/2023/libmongocrypt/<channel>/x86_64
199205
gpgcheck=1
200206
enabled=1
201207
gpgkey=https://pgp.mongodb.com/libmongocrypt.asc
@@ -214,7 +220,7 @@ Create the file `/etc/yum.repos.d/libmongocrypt.repo` with contents:
214220
```
215221
[libmongocrypt]
216222
name=libmongocrypt repository
217-
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/amazon/2/libmongocrypt/1.17/x86_64
223+
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/amazon/2/libmongocrypt/<channel>/x86_64
218224
gpgcheck=1
219225
enabled=1
220226
gpgkey=https://pgp.mongodb.com/libmongocrypt.asc
@@ -233,7 +239,7 @@ Create the file `/etc/yum.repos.d/libmongocrypt.repo` with contents:
233239
```
234240
[libmongocrypt]
235241
name=libmongocrypt repository
236-
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/amazon/2013.03/libmongocrypt/1.17/x86_64
242+
baseurl=https://libmongocrypt.s3.amazonaws.com/yum/amazon/2013.03/libmongocrypt/<channel>/x86_64
237243
gpgcheck=1
238244
enabled=1
239245
gpgkey=https://pgp.mongodb.com/libmongocrypt.asc
@@ -256,7 +262,7 @@ sudo rpm --import https://pgp.mongodb.com/libmongocrypt.asc
256262
Second, add the repository (be sure to change `<release>` to `12` or `15`, as appropriate to your system):
257263

258264
```
259-
sudo zypper addrepo --gpgcheck "https://libmongocrypt.s3.amazonaws.com/zypper/suse/<release>/libmongocrypt/1.17/x86_64" libmongocrypt
265+
sudo zypper addrepo --gpgcheck "https://libmongocrypt.s3.amazonaws.com/zypper/suse/<release>/libmongocrypt/<channel>/x86_64" libmongocrypt
260266
```
261267

262268
Finally, install the libmongocrypt packages:

0 commit comments

Comments
 (0)