... | ... | @@ -5,23 +5,22 @@ |
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
![debian](/icons/debian.svg "debian")
|
|
|
![ubuntu](/icons/ubuntu.svg "ubuntu")
|
|
|
![debian](/icons/debian.svg "Debian")
|
|
|
![ubuntu](/icons/ubuntu.svg "Ubuntu")
|
|
|
|
|
|
## Precompiled packages - debian/ubuntu
|
|
|
## Precompiled packages - Debian/Ubuntu
|
|
|
|
|
|
For debian/ubuntu, OpenCFD works actively with the
|
|
|
For Debian/Ubuntu, OpenCFD works actively with the
|
|
|
[Debian (science)](https://salsa.debian.org/science-team/)
|
|
|
maintainers to [improve the packaging](https://salsa.debian.org/science-team/openfoam),
|
|
|
but also provides its own [early-release repository](https://dl.openfoam.com/repos/deb)
|
|
|
|
|
|
|
|
|
### OpenFOAM Debian/Ubuntu Repository
|
|
|
### OpenFOAM Debian/Ubuntu repository
|
|
|
<a name="debian-openfoam"></a>
|
|
|
|
|
|
To use the OpenFOAM early-release debian/ubuntu repository
|
|
|
(https://dl.openfoam.com/repos/deb), you will need to add the signing
|
|
|
key and the repository location(s) to your system.
|
|
|
To use the [OpenFOAM early-release Debian/Ubuntu repository](https://dl.openfoam.com/repos/deb),
|
|
|
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](https://dl.openfoam.com/add-debian-repo.sh)
|
... | ... | @@ -44,20 +43,20 @@ deb [arch=amd64] https://dl.openfoam.com/repos/deb DIST main |
|
|
which means you should immediately be able to install
|
|
|
your preferred OpenFOAM package. For example,
|
|
|
```
|
|
|
sudo apt-get install openfoam1912-default
|
|
|
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 openfoam1912-default
|
|
|
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 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
|
... | ... | @@ -74,40 +73,40 @@ descriptions, the following represent typical installation commands: |
|
|
|
|
|
|User Group | Command |
|
|
|
|---------------|------------------|
|
|
|
| minimalist | `sudo apt-get install openfoam1912` |
|
|
|
| traditional | `sudo apt-get install openfoam1912-dev` |
|
|
|
| everything | `sudo apt-get install openfoam1912-default` |
|
|
|
| minimalist | `sudo apt-get install openfoam2006` |
|
|
|
| traditional | `sudo apt-get install openfoam2006-dev` |
|
|
|
| everything | `sudo apt-get install openfoam2006-default` |
|
|
|
|
|
|
|
|
|
### Installation Locations
|
|
|
### Installation locations
|
|
|
|
|
|
As documented in [precompiled packages - locations](/precompiled#locations)
|
|
|
As documented in [precompiled packages - locations](/precompiled#locations).
|
|
|
|
|
|
|
|
|
### After installation - using the OpenFOAM environment
|
|
|
|
|
|
As documented in [precompiled packages - OpenFOAM environment](/precompiled#environment)
|
|
|
As documented in [precompiled packages - OpenFOAM environment](/precompiled#environment).
|
|
|
|
|
|
|
|
|
### Updates
|
|
|
|
|
|
After adding the repositories and installing a particular version of
|
|
|
OpenFOAM, upgrade notifications should also appear:
|
|
|
OpenFOAM, upgrade notifications should also appear (for example for `openfoam1912`):
|
|
|
|
|
|
![ubuntu-upgrade](/images/ubuntu-update.png)
|
|
|
|
|
|
|
|
|
### External Links
|
|
|
### External links
|
|
|
<a name="debian-science"></a>
|
|
|
|
|
|
Direct integration in Debian is expected to further improve in the
|
|
|
near future. Packages older than `1912` should be used with some
|
|
|
near future. Packages older than `2006` should be used with some
|
|
|
caution. The OpenFOAM applications are located under `/usr/bin` and
|
|
|
configuration files under `/usr/share/openfoam/etc`, which means that
|
|
|
you will need to manually define the location of the OpenFOAM
|
|
|
directory as follows:
|
|
|
```
|
|
|
export WM_PROJECT_DIR=/usr/share/openfoam
|
|
|
export WM_PROJECT_DIR=/usr/share/openfoam
|
|
|
```
|
|
|
|
|
|
|
... | ... | |