Install from Repository (Debian, Ubuntu)
There is a Debian software repository (DEB) available for Debian-based Linux distributions provided by Greg Logan, and hosted at University of Osnabrück. This repository provides prebuilt Opencast installations, including all 3rd-Party-Tools. Using this method, you do not have to compile the software by yourself, but you still need to configure it.
It may also be interesting for developers as all dependencies for Opencast usage, testing and development are provided by the Debian repository.
Note that it may take some time (usually about a week after a new release is out) before the Debian packages are available. Watch for announcements on list or just check which versions are available in the repository.
- Debian 9 and newer amd64
- Ubuntu 18.04 amd64
For Opencast 9 we support JDK 8 and JDK 11, however Opencast 10 will drop support for JDK 8. We strongly encourage you to use JDK 11 for Opencast 9.
First you have to install the necessary repositories so that your package manager can access them:
Ensure https repositories are supported:
apt-get install apt-transport-https ca-certificates sudo wget gnupg2
Add Opencast repository:
echo "deb https://pkg.opencast.org/debian 9.x stable" | sudo tee /etc/apt/sources.list.d/opencast.list
It might take some time after the release of a new Opencast version before the Debs are moved to the stable repository. If you need the new release prior to its promotion to stable you can use the testing repository. Note that the testing repository is an additional repository and still requires the stable repository to be active.
echo "deb https://pkg.opencast.org/debian 9.x stable testing" | sudo tee /etc/apt/sources.list.d/opencast.list
Add the repository key to your apt keyring:
wget -qO - https://pkg.opencast.org/gpgkeys/opencast-deb.key | sudo apt-key add -
Update your package listing
Install Apache ActiveMQ
The Apache ActiveMQ message broker is required by Opencast since version 2.0. It does not necessarily have to be installed on the same machine as Opencast, however many adopters commonly install it on their admin nodes. Install ActiveMQ with:
apt-get install activemq-dist
A prepared configuration file for ActiveMQ can be found at
after Opencast itself has been installed and should replace
/etc/activemq/activemq.xml. For an all-in-one
installation the following command should suffice:
cp /usr/share/opencast/docs/scripts/activemq/activemq.xml /etc/activemq/activemq.xml
ActiveMQ must be started prior to Opencast startup.
More information about how to properly set up ActiveMQ for Opencast can be found in the message broker configuration documentation.
Note that most Debian based distributions also have ActiveMQ packaged by upstream package maintainers. These packages will work, however the ActiveMQ configuration file will require modification to function correctly.
Starting with Opencast 9, Elasticsearch is now a dependency. Our packages do not explicitly depend on Elasticsearch because it runs externally to Opencast. By default we expect Elasticsearch to be running on the admin node, however you can configure the URL in Opencast's configuration files.
In our repository we provide validated Elasticsearch packages copied from the upstream repository. Installation can be accomplished by running the following:
apt-get install elasticsearch-oss
If you wish to use the upstream Elasticsearch repository directly be aware that Opencast only formally supports Elasticsearch versions with the same major and minor version values. That is, if our 9.x repository has Elasticsearch 7.9.2 then Opencast only formally supports Elasticsearch versions starting with 7.9.
For this guide we will be installing the latest released version of Opencast 9.x, however if you wish to install another version please change the name accordingly.
For a basic installation (All-In-One) just run:
apt-get install opencast-9-allinone elasticsearch-oss activemq-dist
This will install the default distribution of Opencast and all its dependencies, including the 3rd-Party-Tools. Note
that while the repository provides a packaged version of ffmpeg, your distribution may have a version which is
pre-installed or otherwise takes precedence. This version may work, however Opencast only formally supports the
version(s) in the repository. To install the Opencast version of ffmpeg add
ffmpeg-dist to the end of the command above.
At this point Opencast is installed and will work locally, but it is not completely configured. Because additional configuration is required, neither Opencast nor ActiveMQ are configured to start automatically. Please follow the Basic Configuration guide. Once you are ready, enable Opencast and ActiveMQ to start on boot with:
systemctl enable activemq.service systemctl enable opencast.service
then start them with:
systemctl start activemq.service systemctl start opencast.service
While the basic installation will give you an all-in-one Opencast distribution which is nice for testing, you might want to have more control over your system and deploy it over several machines by choosing which parts of Opencast you want to install. You can list all Opencast packages with:
apt-cache search opencast
This will list all available Opencast distributions in the form
Some available distributions are:
X stands for a specific Opencast version. These packages will install the latest release for a given version,
so opencast-8-admin will install the admin profile for Opencast 8.x (currently 8.9). Once Opencast 8.10 has been packaged
and made available your system will automatically update to Opencast 8.10 using the standard
To list all available packages and versions, use:
apt list 'opencast*'
Point Revisions (Experts only)
If for some reason you wish to install a specific point revision of Opencast, and the repository still hosts that point
revision, you can select it by adding it, and the packaging build, to your
apt-get install line. For example:
apt-get install opencast-8-admin=8.9-2
Installs an Opencast 8.9 admin node, using the second build of that series. Not all series have more than a single build, and older point revisions may be removed once superceded, so please explore the repository prior to attempting this.
This step is optional and only recommended for those who want to build Opencast from source. If you install Opencast from the repository, all necessary dependencies will be installed automatically.
You can install all necessary 3rd-Party-Tools for Opencast like this:
apt-get install ffmpeg-dist tesseract-ocr sox hunspell netcat
Upgrading Major Versions
While these packages will automatically upgrade you to the latest point version in a release series, they do not
automatically upgrade you to the latest major version. In other words, if you install
opencast-9-admin you get the
latest 9.x release, not the latest 10.x release. To upgrade from one version to another you first stop Opencast:
systemctl stop opencast.service
As a reminder, these instructions will change your Opencast installation, and files to a new version which is likely incompatible with older versions. If you are performing this on a production system, please ensure you have valid backups prior to taking the next steps.
Uninstall your current Opencast packaging (using Opencast 8 as an example):
apt-get remove opencast-8-*
Then install the new version (using Opencast 9 as an example):
apt-get install opencast-9-allinone
At this point you must follow the relevant upgrade instructions, prior to starting Opencast again.
To uninstall Opencast, you can run:
apt-get remove 'opencast*'
This will not touch your created media files or modified configuration files. If you want to remove them as well, you have to do that by yourself.
# Remove media files sudo rm -rf /srv/opencast # Remove local db, search indexes and working files sudo rm -rf /var/lib/opencast # Remove configuration files sudo rm -rf /etc/opencast # Remove logs sudo rm -rf /var/log/opencast
This repository expects that the
stable section is always available, regardless of which version of Opencast you have
installed. The 3rd party tools (ActiveMQ, FFmpeg) may or may not be in the other sections, but if they are there it is
only during a testing period for a new version. For day-to-day use, please install them from