In this codecast, Mike installs Rails 6.1, PostgreSQL 13 and MariaDB 10.5 on Ubuntu 20-04.
See the previous videos in the setup and configuration series for installing Rails dependencies:
0:00:10 – Install Rails
gem install rails rails new systemtest cd systemtest rails s
0:03:52 – Install PostgreSQL 13
Add the PPA
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
Add the GPG key
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
Update the sources
sudo apt update
Install PostgreSQL
sudo apt-get -y install postgresql
Verify running status
sudo systemctl status postgresql
0:07:49 – Install additional PostgreSQL packages
sudo apt install libpq-dev sudo apt install postgresql-client sudo apt install postgresql-server-dev sudo apt install pgadmin3 pgadmin3-data
0:12:45 – Install MariaDB 10.5
Install software-properties-common dependency
sudo apt-get install software-properties-common
Add GPG key
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
Add PPA repository
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirror.jaleco.com/mariadb/repo/10.5/ubuntu focal main'
Update the sources
sudo apt update
Install the server
sudo apt install mariadb-server