- Precompiled packages - Debian/Ubuntu
Precompiled packages - Debian/Ubuntu
OpenFOAM Debian/Ubuntu repository
To use the OpenFOAM early-release Debian/Ubuntu repository, you will need to add the signing key and the repository location(s) to your system. This typically only needs to be done once per distribution. The most convenient way is to use the installer script with one of these commands:
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
This performs three things:
- Adds the https://dl.openfoam.com/pubkey.gpg signing key for the repository
- Adds repository information for a given distribution (eg, buster, focal, etc.):
deb [arch=amd64] https://dl.openfoam.com/repos/deb DIST main
apt-get updateto refresh the repositories, which means you should immediately be able to install your preferred OpenFOAM package. For example,
sudo apt-get install openfoam2006-default
After migrating from one version to another, you can remove the old version with the usual commands. For example,
sudo apt-get autoremove openfoam2006-default
Supported versions and distributions
It is too early to establish a policy about which older OpenFOAM versions will be supported, but these should generally be covered by the regular Debian/Ubuntu updates (not the early release repo).
The goal of the early release repository is to support the latest Debian and Ubuntu LTS versions (allowing for a few months transition when a new LTS is released). The Ubuntu rolling releases will generally also be targeted, since these provide a good advanced warning of issues that may appear in the next LTS.
Following the precompiled packages - sub-packages descriptions, the following represent typical installation commands:
As documented in precompiled packages - locations.
After installation - using the OpenFOAM environment
As documented in precompiled packages - OpenFOAM environment.
After adding the repositories and installing a particular version of
OpenFOAM, upgrade notifications should also appear (for example for
Direct integration in Debian is expected to further improve in the
near future. Packages older than
2006 should be used with some
caution. The OpenFOAM applications are located under
configuration files under
/usr/share/openfoam/etc, which means that
you will need to manually define the location of the OpenFOAM
directory as follows:
|Debian (science)||package openfoam - see debian search and tracker||Maintained independently, with input from OpenCFD||older is "stable" (used for debian), newest is "testing" (used for ubuntu)|
|sourceforge repo||debian repo||Actively maintained by OpenCFD||backend for https://dl.openfoam.com/repos/deb|
- The README contents that should appear on the sourceforge repo.
Copyright (C) 2020 OpenCFD Ltd.