Ubuntu 18.04 Bionic Beaver actually comes with MariaDB, but the default version on upstream repositories are still using version 10.1. How if we want to use the latest version (10.4 at the time of this writing)?
As PHP had officially released PHP version 7.3.9, I decided to install it on one of my development server. It uses Ubuntu 18.04 (Bionic Beaver), so official PHP package provided from their repository is at 7.2.19. Thanks to
Ondřej Surý PPA repository that enables us to install the latest versions of PHP. Hence, run the command below to add this PPA repository to your Ubuntu 18.04 system.
Installing MongoDB on Ubuntu based Distributions
- Install MongoDB using Ubuntu’s repository.
- Install MongoDB using its official repository.
Install MongoDB Using Ubuntu's Repository
Using official Ubuntu's repository is easier if you don't care if you're using older MongoDB version.
CentOS 7 actually comes with MariaDB, but the default version on upstream repositories are still using version 5.5. This article will guide you how to install the latest version of MariaDB (10.4 at the time of this writing).