Do you need to install an old version of MariaDB on Ubuntu? Maybe you need to do some testing. Here’s how.
Visit https://mariadb.com/downloads/ and choose your package and OS. You’ll download a tar fie.
Extract the tar file with
tar xf mariadb*.tar.
Change your working directory to the extracted directory.
Set up your apt repository to install this version.
Install this version.
sudo apt-get update && sudo apt-get -y install mariadb-server
Secure your installation.
And, that’s it.