Precompiled packages (CentOS/RedHat/Fedora)
The packages do not contain
visualization (eg, ParaView/runTimePostProcessing) or
external-solver (eg, PETSc) modules:
see the corresponding FAQ



Rocky/Fedora/CentOS/RedHat
For RedHat-based systems, OpenCFD Ltd. current uses the copr infrastructure to provide RPM packages. These precompiled packages leverage standard components available from EPEL (Extra Packages for Enterprise Linux) and some elements of PowerTools as well.
This information unfortunately
no longer applies to CentOS-9/RedHat-9. The PowerTools repository
has been replaced with a CBR repository with much limited functionality.
In the process, they have removed the metis and scotch
libraries which are essential for domain decomposition!
These should also be enabled prior to further installation (Fedora users can possibly skip this part).
yum -y install dnf-plugins-core
yum -y config-manager --set-enabled PowerTools
yum -y install epel-release
# For RockyLinux:
crb enable
Enable copr for OpenFOAM as per the copr documentation
dnf -y copr enable openfoam/openfoam
# On older systems:
yum -y install yum-plugin-copr
yum -y copr enable openfoam/openfoam
Can now install the desired OpenFOAM packages. Since multiple OpenFOAM versions can be installed simultaneously, the tiny openfoam-selector can useful for switching between versions.
yum -y install openfoam-selector
Finally install the most recent runtime-only package (or other combinations):
yum -y install openfoam
Supported versions and distributions
These may change from time to time, but the general goal would be maintain the last two (or three) versions of OpenFOAM supported on latest two EPEL versions and a newer Fedora. However, sometimes updated system packages (Fedora) mean that one of the older OpenFOAM versions needs to be dropped prematurely.
Sub-packages
Following the precompiled packages - sub-packages descriptions, the following represent typical installation commands:
User Group | Command |
---|---|
minimalist | sudo yum install openfoam2406 |
traditional | sudo yum install openfoam2406-devel |
everything | sudo yum install openfoam2406-default |
Installation locations
As documented in precompiled packages - locations.
After installation - using the OpenFOAM environment
As documented in precompiled packages - OpenFOAM environment.
External links
System | Links | Status | Notes |
---|---|---|---|
RedHat derivatives: copr | package openfoam | Developed by OpenCFD |
Copyright (C) 2020-2024 OpenCFD Ltd.