One of the most important news that came with Ubuntu 16.04 is the compatibility with snap packages. These packages will allow developers to deliver updates just in time for them to be ready, which will allow users to upgrade much sooner than we could until Ubuntu 15.10. But while developers update their applications and create them in snap packages, if we want to update a program sooner we will have to do it via repositories. This is something we will have to do right now if we want to to install LibreOffice 5.2
Before I start explaining the steps to install and run LibreOffice 5.2 on Ubuntu, I must say that this method only works on versions from Ubuntu 14.04 to Ubuntu 16.04. Its operation has not been tested in previous versions or Ubuntu 16.10, the next version of operating system developed by Canonical that is already being tested and will be released in mid-October.
How to install LibreOffice 5.2 via repository
To install LibreOffice 5.2 from Ubuntu 14.04 to Ubuntu 16.04, follow these steps:
- We open a terminal and type the following command:
sudo add-apt-repository ppa:libreoffice/ppa && sudo apt update
- Before updating packages, we need to resolve some conflicts that may arise. And is that LibreOffice 5.2 uses the new version of LibreOffice-GTK2, so we have to remove the previous version by opening a terminal and typing the following command:
sudo apt remove libreoffice-gtk
- Finally we can update the packages and install the software, for which we will open a terminal (or the same one we used in previous steps) and write the following command:
sudo apt update && sudo apt install libreoffice-gtk2 libreoffice-gnome
Personally, I don’t like to add repositories to install software that will arrive a little later in the official repositories but if you want to try all the new features in LibreOffice ahead of time, this is the best option.