The OpenQuake Engine stable tree is available in the form of deb binary packages for the following Ubuntu releases:
- Ubuntu 18.04 LTS (Bionic)
- Ubuntu 16.04 LTS (Xenial)
Packages may work on Ubuntu derivatives (i.e. Mint Linux) and Debian, but this setup in not supported by GEM. See the FAQ.
The software and its libraries will be installed under /opt/openquake
. Data will be stored under /var/lib/openquake
.
If you want to upgrade an existing installation see upgrading.
The following commands add the official stable builds package repository:
sudo add-apt-repository -y ppa:openquake/ppa
sudo apt update
If you want to install a nightly build please read the guide about installing the nightly build packages on Ubuntu.
Then to install the OpenQuake Engine and its libraries run
sudo apt install python3-oq-engine
The package installs three system service managed through systemd:
openquake-dbserver
: provides the database for the OpenQuake Engine and must be started before running anyoq engine
commandopenquake-webui
: provides the WebUI and is optionalopenquake-celery
: used only on a multi-node setup, not used in a default setup
openquake-dbserver
and openquake-webui
are started by default at boot.
To manually start, stop or restart a service run
sudo systemctl <start|stop|restart> openquake-dbserver openquake-webui
To check the status of a service run
sudo systemctl status openquake-dbserver openquake-webui
Continue on How to run the OpenQuake Engine
To run the OpenQuake Engine tests see the testing page.
To uninstall the OpenQuake Engine and all its components run
sudo apt remove python-oq-* python3-oq-*
If you want to remove all the dependencies installed by the OpenQuake Engine you may then use the apt autoremove
function and run
sudo apt autoremove
To reset the database oq reset
command can be used:
sudo systemctl stop openquake-dbserver
sudo -u openquake oq reset
sudo systemctl start openquake-dbserver
To remove all the data produced by the OpenQuake Engine (including datastores) you must also remove ~/oqdata
in each users' home. The reset-db
bash script is provided, as a reference, in /usr/share/openquake/engine/utils
.
If the packages have been already uninstalled, it's safe to remove /var/lib/openquake
.
If you need help or have questions/comments/feedback for us, you can:
- Subscribe to the OpenQuake users mailing list: https://groups.google.com/g/openquake-users
- Contact us on IRC: irc.freenode.net, channel #openquake