|
|
<!-- --- title: Precompiled Packages (debian) -->
|
|
|
|
|
|
## Precompiled packages - debian/ubuntu
|
|
|
|
|
|
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
|
|
|
<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.
|
|
|
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)
|
|
|
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:
|
|
|
|
|
|
1. Adds the https://dl.openfoam.com/pubkey.gpg signing key for the repository
|
|
|
2. Adds repository information for a given distribution (eg, _buster_, _focal_, etc.):
|
|
|
```
|
|
|
deb [arch=amd64] https://dl.openfoam.com/repos/deb DIST main
|
|
|
```
|
|
|
3. Invokes `apt-get update` to refresh the repositories,
|
|
|
which means you should immediately be able to install
|
|
|
your preferred OpenFOAM package. For example,
|
|
|
```
|
|
|
sudo apt-get install openfoam1912-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
|
|
|
```
|
|
|
|
|
|
### 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.
|
|
|
|
|
|
|
|
|
### Sub-packages
|
|
|
<a name="sub-packages"></a>
|
|
|
|
|
|
Following the [precompiled packages - sub-packages](/precompiled#sub-packages)
|
|
|
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` |
|
|
|
|
|
|
|
|
|
### Installation Locations
|
|
|
|
|
|
As documented in [precompiled packages - locations](/precompiled#locations)
|
|
|
|
|
|
|
|
|
### After installation - using the OpenFOAM 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:
|
|
|
|
|
|
![ubuntu-upgrade](/images/ubuntu-update.png)
|
|
|
|
|
|
|
|
|
### 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
|
|
|
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
|
|
|
```
|
|
|
|
|
|
|
|
|
|System | Links | Status | Notes |
|
|
|
|---------------|--------------|----------------|---------------|
|
|
|
| [Debian (science)](https://salsa.debian.org/science-team/) | package [openfoam](https://salsa.debian.org/science-team/openfoam) - see [debian search](https://packages.debian.org/search?keywords=openfoam) and [tracker](https://tracker.debian.org/pkg/openfoam) | Maintained independently, with input from OpenCFD | older is _"stable"_ (used for debian), newest is _"testing"_ (used for ubuntu) |
|
|
|
| sourceforge repo | [debian repo](https://sourceforge.net/projects/openfoam/files/repos/deb) | Actively maintained by OpenCFD | backend for https://dl.openfoam.com/repos/deb |
|
|
|
|
|
|
|
|
|
- The [README](/packaging/debian/README) contents that should appear on the sourceforge repo.
|
|
|
|
|
|
---
|
|
|
Copyright (C) 2020 OpenCFD Ltd. |