SepehrSabzPackage Mirrors
mirror online

mariadb-mirror / community database packages

Install MariaDB Community Server through the local APT or DNF mirror at mirror.sepehrsabz.ir/mariadb. Examples pin the maintained 11.4 LTS release series.

01 — APT REPOSITORY

Ubuntu and Debian

Import MariaDB's signing key from the mirror, then choose the definition matching your distribution.

install signing key
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.gpg
/etc/apt/sources.list.d/mariadb.list
deb [signed-by=/etc/apt/keyrings/mariadb.gpg] https://mirror.sepehrsabz.ir/mariadb/repo/11.4/ubuntu noble main
/etc/apt/sources.list.d/mariadb.list
deb [signed-by=/etc/apt/keyrings/mariadb.gpg] https://mirror.sepehrsabz.ir/mariadb/repo/11.4/debian bookworm main
/etc/apt/sources.list.d/mariadb.list
deb [signed-by=/etc/apt/keyrings/mariadb.gpg] https://mirror.sepehrsabz.ir/mariadb/repo/11.4/debian trixie main
refresh and install
sudo apt update
sudo apt install -y mariadb-server mariadb-client mariadb-backup
02 — DNF / YUM REPOSITORY

AlmaLinux, Rocky Linux, and RHEL

This definition follows MariaDB's mirrored RPM layout and automatically selects the Enterprise Linux major version and CPU architecture.

/etc/yum.repos.d/MariaDB.repo
[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=1
install
sudo dnf clean metadata
sudo dnf install -y MariaDB-server MariaDB-client MariaDB-backup

For an AlmaLinux-specific path, replace /rhel/ with /almalinux/. The RHEL path is suitable for compatible Enterprise Linux distributions.

03 — START & SECURE

Start the database service

shell
sudo systemctl enable --now mariadb
sudo mariadb-secure-installation
Existing database? Take and verify a backup before changing release series. A repository change can trigger a major-version upgrade on the next package update.
04 — VERIFY

Confirm packages and service health

shell
mariadb --version
systemctl --no-pager --full status mariadb
sudo mariadb -e "SELECT VERSION();"
05 — RELEASE SERIES

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.