Downloads Setting up MariaDB Repositories
latest: 10.7.3

 

It will update the databases for you.   You can use sudo mysql_upgrade -u root -p to verify it is updated.  It will install the repositories for future dist-upgrades.

sudo apt update
sudo apt list –upgradable -a
sudo apt dist-upgrade
sudo reboot

You start by stopping mariadb and removing it.

sudo systemctl stop mariadb

sudo apt remove mariadb-server

 

Next you setup the new repository

sudo apt-get install software-properties-common dirmngr apt-transport-https
sudo apt-key adv –fetch-keys ‘https://mariadb.org/mariadb_release_signing_key.asc
sudo add-apt-repository ‘deb [arch=amd64,arm64,ppc64el,s390x] https://mirror.jaleco.com/mariadb/repo/10.7/ubuntu focal main’

sudo apt update sudo apt install mariadb-server

Then I run the upgrade commands again to get any patches

sudo apt update
sudo apt list –upgradable -a
sudo apt dist-upgrade