install latest version of mariadb ubuntu 18 code example Example: install mariadb 10.2 ubuntu 16.04 sudo apt update sudo apt install mariadb-server