Precompiled packages (CentOS/RedHat/Fedora)
![centos >]()
![>]()
CentOS/RedHat/Fedora
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.
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
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 openfoam2012 |
traditional | sudo yum install openfoam2012-devel |
everything | sudo yum install openfoam2012-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 |
---|---|---|---|
Fedora/CentOS/RedHat copr | package openfoam | In development by OpenCFD |
Copyright (C) 2020 OpenCFD Ltd.