This simply tutorial shows how to install the latest version of Battle for Wesnoth in Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.
The Battle for Wesnoth is an open source, turn-based strategy game with a high fantasy theme. While the stock version of Wesnoth in Ubuntu main repositories is always old, you can install the latest release via the Flatpak package.
Press Ctrl+Alt+T on keyboard to open terminal, then run following commands one by one.
1. First run command to make sure Flatpak framework is installed:
sudo apt install flatpak
2. Add the official Flathub repository which contains a large list of Flatpak packages.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
3. Finally install the game via command:
flatpak install flathub org.wesnoth.Wesnoth
If you already installed the flatpak and want to check for updates, run command:
flatpak update org.wesnoth.Wesnoth
NOTE: If you also installed Wesnoth from Ubuntu Software, you will have two application shortcut icons as the flatpak runs in sandbox. Besides removing the old stock version, you may run Wesnoth flatpak via command:
flatpak run org.wesnoth.Wesnoth
To remove the software package, run command in terminal:
flatpak uninstall org.wesnoth.Wesnoth