This simple tutorial shows you how to install the latest version of Battle for Wesnoth on Ubuntu 18.04, Ubuntu 19.10 and Ubuntu 20.04.
Battle for Wesnoth is an open source, turn-based strategy game with a fantasy theme. Stock versions of Wesnoth in the Ubuntu main repository are always outdated, but you can install the latest release using the Flatpak package.
Open a terminal by pressing Ctrl + Alt + T on your keyboard and execute the following commands one by one.
1. Execute the command first to confirm that the Flatpak framework is installed.
sudo apt install flatpak
2. Add official Flat hub Repository containing a large list of Flatpak packages.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
3. Finally, install the game using the command.
flatpak install flathub org.wesnoth.Wesnoth
If you have already installed flatpak and want to check for updates, run the following command:
flatpak update org.wesnoth.Wesnoth
Note: If you also installed Wesnoth from Ubuntu Software, you will see two application shortcut icons when flatpak runs in the sandbox. In addition to removing old stock versions, you can run Wesnoth flatpak using a command.
flatpak run org.wesnoth.Wesnoth
To remove a software package, execute a command in Terminal.
flatpak uninstall org.wesnoth.Wesnoth