Ubuntu and Debian
Import MariaDB's signing key from the mirror, then choose the definition matching your distribution.
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://mirror.sepehrsabz.ir/mariadb/PublicKey | sudo gpg --dearmor --yes -o /etc/apt/keyrings/mariadb.gpg
sudo chmod a+r /etc/apt/keyrings/mariadb.gpgdeb [signed-by=/etc/apt/keyrings/mariadb.gpg] https://mirror.sepehrsabz.ir/mariadb/repo/11.4/ubuntu noble maindeb [signed-by=/etc/apt/keyrings/mariadb.gpg] https://mirror.sepehrsabz.ir/mariadb/repo/11.4/debian bookworm maindeb [signed-by=/etc/apt/keyrings/mariadb.gpg] https://mirror.sepehrsabz.ir/mariadb/repo/11.4/debian trixie mainsudo apt update
sudo apt install -y mariadb-server mariadb-client mariadb-backupAlmaLinux, Rocky Linux, and RHEL
This definition follows MariaDB's mirrored RPM layout and automatically selects the Enterprise Linux major version and CPU architecture.
[mariadb]
name=MariaDB 11.4 - SepehrSabz Mirror
baseurl=https://mirror.sepehrsabz.ir/mariadb/yum/11.4/rhel/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirror.sepehrsabz.ir/mariadb/yum/RPM-GPG-KEY-MariaDB
module_hotfixes=1sudo dnf clean metadata
sudo dnf install -y MariaDB-server MariaDB-client MariaDB-backupFor an AlmaLinux-specific path, replace /rhel/ with /almalinux/. The RHEL path is suitable for compatible Enterprise Linux distributions.
Start the database service
sudo systemctl enable --now mariadb
sudo mariadb-secure-installationConfirm packages and service health
mariadb --version
systemctl --no-pager --full status mariadb
sudo mariadb -e "SELECT VERSION();"Pin deliberately, upgrade carefully
Change 11.4 in the repository URL only after reviewing MariaDB's upgrade path and taking a tested backup. The mirror also carries other current and long-term series; browse it before selecting one.
Use a series URL such as 11.4 for patch updates within that series. Avoid a rolling channel on production systems unless that upgrade behavior is intentional.