Building MariaDB from a Source RPM
Instructions for building MariaDB binaries from a source RPM package using tools like `rpmbuild`, `yum`, or `dnf`.
For some distributions you can build MariaDB from a source RPM. (See also Why Source RPMs (SRPMs) Aren't Packaged For Some Platforms).
You can build it as follows:
using dnf
dnfOn RHEL8 you might need to start with:
sudo dnf config-manager --set-enabled codeready-builder-beta-for-rhel-8-x86_64-rpmsThen, on all dnf distributions:
sudo dnf install rpm-build perl-generators
dnf download --source MariaDB
sudo dnf builddep MariaDB-*.src.rpm
rpmbuild --rebuild MariaDB-*.src.rpmusing yum
yumsudo yum install rpm-build yum-utils
yumdownloader --source MariaDB
sudo yum-builddep MariaDB-*.src.rpm
rpmbuild --rebuild MariaDB-*.src.rpmusing zypper
zyppersudo zypper in rpm-build
sudo zypper si MariaDB
sudo rpmbuild -bb /usr/src/packages/SPECS/MariaDB.specOr (to avoid building as root):
This page is licensed: CC BY-SA / Gnu FDL
PreviousBuild Environment Setup for LinuxNextBuilding MariaDB From Source Using musl-based GNU/Linux
Last updated
Was this helpful?

