- Home
- Docs
- Installation and configuration
- Enterprise
- Linux version
- Updating ONLYOFFICE Docs Enterprise Edition for Linux to the latest version
Updating ONLYOFFICE Docs Enterprise Edition for Linux to the latest version
Introduction
This guide will show you how to update your ONLYOFFICE Docs Enterprise Edition Linux version to the latest version.
Starting from version 4.1, ONLYOFFICE Docs uses PostgreSQL instead of MySQL database which had been used in previous versions, so in this guide we will show the upgrade from version 4.1 to the latest available version. This update procedure cannot be applied to earlier versions that use MySQL.
onlyoffice-documentserver-ie
) and install Enterprise Edition instead of it.
- On Ubuntu, you can use the following command to uninstall the DEB package:
sudo apt-get remove onlyoffice-documentserver-ie
- On CentOS, you can use the following command to uninstall the RPM package:
sudo yum remove onlyoffice-documentserver-ie
Shutting down ONLYOFFICE Docs
Due to the operational characteristic, ONLYOFFICE Docs saves a document only after the document has been closed by all the users who edited it. To avoid data loss, you must forcefully disconnect the ONLYOFFICE Docs users when you need to stop ONLYOFFICE Docs in case of the application update. To do that, execute the following script:
documentserver-prepare4shutdown.sh
Updating ONLYOFFICE Docs for Linux
Updating using the script
Download the installation script:
wget http://download.onlyoffice.com/docs/docs-enterprise-install.sh
Execute the following command:
bash docs-enterprise-install.sh -u true
Type N and press Enter to update ONLYOFFICE Docs from DEB/RPM packages.
Updating manually
Installing dependencies
Some of the dependencies required for ONLYOFFICE Docs correct work are not included into Ubuntu 14.04 by default, so they require additional steps for the newer versions of ONLYOFFICE Docs.
The following dependencies will be installed automatically if you use Ubuntu 14.04 LTS or later when you update ONLYOFFICE Docs (in case some of them were not installed with ONLYOFFICE Docs in earlier versions for some reason):
- libcurl3
- libxml2
- fonts-dejavu
- fonts-liberation
- ttf-mscorefonts-installer
- fonts-crosextra-carlito
- fonts-takao-gothic
- fonts-opensymbol
Earlier distributions might require their manual installation.
If you want to update version 4.1, you will need to manually add the repository containing the proper Node.js package version (this action is not required when updating version 4.2).
Add repository:
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
Installing new version of ONLYOFFICE Docs
For Ubuntu and derivatives
Update repository:
sudo apt-get update
And install the latest version of ONLYOFFICE Docs:
sudo apt-get dist-upgrade
For CentOS and derivatives
sudo yum update onlyoffice-documentserver-ee
The database and all necessary files should be picked up automatically from the previous version. Please run ONLYOFFICE Docs and check it for correct work.
- Download the script for upgrading the database schema.
- Execute the script using the command line.
- For PostgreSQL:
psql -U onlyoffice -W onlyoffice < {path-to-upgradev630.sql}
- For MySQL:
mysql -u root -p onlyoffice < {path-to-upgradev630.sql}
Specify the password used when creating the database (
onlyoffice
). - For PostgreSQL: