Subscribe to UbuntuBuzz Telegram Channel https://telegram.me/ubuntubuzz to get article updates directly.
Overview
In Flatpak system (different with the default APT system), you need to follow these steps:
- Install the Flatpak user program. This is required because Ubuntu does not include it by default.
- Install the GNOME Platform Runtime. This is required too because many software packaged in .flatpak depends on this as a dependency.
- Download the .flatpak package of a software. You may find some popular free software like LibreOffice and GNOME already has Flatpak version of their software. Nowadays, Flatpak is still a new thing, so there are not too many software already available yet in Flatpak format.
- Install the .flatpak package using the Flatpak user program.
- Once you have Flatpak user program and GNOME Platform Runtime, you can install any number of .flatpak packages.
1. Install Flatpak User Program
Type these command lines in Terminal:
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt-get update
sudo apt-get install flatpak
2. Install GNOME Platform Runtime
GNOME Platform Runtime is a collection of software and library from GNOME as a requirement to install LibreOffice.flatpak package. Installing this runtime is important. Please remember that this runtime is huge, around 180 MB in size for now (at your time, it can be different). To install it, run the following command line in Terminal:
$ flatpak install --user gnome org.gnome.Platform 3.20
3. Download Flatpak Package for LibreOffice
After having the two requirements, you just need to download the LibreOffice package in .flatpak file format. Download it from this URL: http://download.documentfoundation.org/libreoffice/flatpak/latest/LibreOffice.flatpak. At the day I write this guide (20 December 2016), it is 156 MB in size and it contains the LibreOffice software version 5.2.3.3.
4. Install The .flatpak Package
After having all the requirements and the .flatpak package, now you just need to install the .flatpak file using Flatpak user program. This installation lasts for few minutes and it does not show any progress information (by default) while processing (by contrast, APT shows a lot of information). You install it in using Terminal by this command line:
$ flatpak install --user --bundle LibreOffice.flatpak
5. Run The LibreOffice Software
Once installed, the software (LibreOffice here) is ready to run by using this command line in Terminal:
$ flatpak run org.libreoffice.LibreOffice
6. Uninstall Flatpak Software
Once installed, a software installed from .flatpak package can be uninstalled by this command line:
$ flatpak uninstall --user org.libreoffice.LibreOffice
6. Additional Info about Using Flatpak
Here are some useful information to use Flatpak just like you use the default apt-get package manager.
- $ flatpak list : command line to show what Flatpak packages installed in your system.
- $ man flatpak : command line to show complete Flatpak user manual.