Commit 618e5fc
Add an offline / air-gapped install section to the packages guide
A host with no route to the DocumentDB repository also has no route to
PGDG, and the extension depends on PostgreSQL itself plus pg_cron,
pgvector and PostGIS, which are PGDG packages. Downloading the release
assets alone is therefore not enough, and the guide had nothing to say
about that case.
Document staging the full dependency closure on a connected machine and
serving it to the target as a local repository, for both DEB and RPM.
Because the target then has a real repository index, the air-gapped
install stays a single `apt install documentdb-18` / `dnf install
documentdb-18` with full dependency resolution rather than an ordered
list of files. Smaller cases are covered too: the extension alone from
one file, and the full stack from the six release assets.
Call out the trap that makes a bundle look complete and fail on arrival:
`apt-get install --download-only` and a bare `dnf download --resolve`
skip anything already installed on the staging machine, so a clean target
dies with errors like "Depends: adduser but it is not installable". Use
`apt-cache depends --recurse` and `dnf download --alldeps`, which ignore
local install state.
Verified on v0.116-0 with every command run verbatim, staging on a
connected container and installing into one started with --network none:
* DEB: closure 205 packages / 203 MB staged on ubuntu:24.04, then
`apt install documentdb-18` on an offline ubuntu:24.04 -> exit 0.
* RPM: closure 271 packages / 172 MB staged on rockylinux:9, then
`dnf install documentdb-18` on an offline rockylinux:9 -> exit 0.
* Single file: `apt install ./postgresql-18-documentdb_0.116-0_amd64.deb`
on an offline host with the PGDG prerequisites present -> exit 0.
The first attempt used --download-only and produced exactly the failure
now documented (133 packages staged instead of 205), which is why it is
called out rather than left as a footnote.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f18515db-c52f-4197-aa50-d81359c7c763
Signed-off-by: Guanzhou Song <guanzhou.song@gmail.com>1 parent 825c60f commit 618e5fc
1 file changed
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
200 | 263 | | |
201 | 264 | | |
202 | 265 | | |
| |||
0 commit comments