OGS can be built on systems without internet connection when the following files can be made available on the system:
.git) and un-archive on the target system.The CPM source cache may change over time. To get the required file id check the package_file_id field in web/data/versions.json, e.g. with:
$ jq -r '.cpm.package_file_id' web/data/versions.json
1773 # <-- current version on masterNow simply download the file with:
curl https://gitlab.opengeosys.org/ogs/ogs/-/package_files/[insert ID here]/download --output cpm.tar.gzUn-archive the CPM cache into a directory. Configure OGS as usual but point to the extracted CPM cache:
cmake --preset release -DCPM_SOURCE_CACHE=./path/to/cpmThere will be some CMake warnings from CPM regarding missing git repositories in the cache. You can ignore them.
The external dependencies source cache may change over time. To get the required version check the cache_hash field in web/data/versions.json, e.g. with:
$ jq -r '.ext.cache_hash' web/data/versions.json
b3f0b7eb666750343ee357e76192122a448fe1a6 # <-- current version on masterOn the external dependencies package page download the file ext.tar.gz of the package external-dependencies with the specified version.
Extract the external dependencies cache into a directory. Configure OGS as usual but point to the extracted external dependencies cache:
cmake --preset release -DOGS_EXTERNAL_DEPENDENCIES_CACHE=./path/to/extOn a machine with internet access download the tarballs:
wget https://gitlab.opengeosys.org/ogs/ogs/-/archive/6.5.1/ogs-6.5.1.tar.gz
wget -O cpm.tar.gz https://gitlab.opengeosys.org/ogs/ogs/-/package_files/1048/download
wget -O ext.tar.gz https://gitlab.opengeosys.org/ogs/ogs/-/package_files/1245/downloadCopy those file onto the machine where you want to build OGS. Then build OGS offline:
tar xf ogs-6.5.1.tar.gz
tar xf cpm.tar.gz
tar xf ext.tar.gz
cd ogs-6.5.1
OGS_VERSION=6.5.1 cmake --preset release -DCPM_SOURCE_CACHE=../cpm -DOGS_EXTERNAL_DEPENDENCIES_CACHE=../ext
cmake --build --preset releaseThis article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.147.9
in CI job 639840
|
Last revision: September 27, 2025
Commit: [cmake] Remove linker warnings when building mpmetis. 852270d
| Edit this page on