Building MariaDB from a Source RPM

You are viewing an old version of this article. View the current version here.

For some distributions you can build MariaDB from a source RPM. (See also why-mariadb-rpms-dont-include-the-source-rpm-srpms).

You can build it as follows:

using dnf

On RHEL you might need start with:

    sudo dnf config-manager --set-enabled codeready-builder-beta-for-rhel-8-x86_64-rpms

Then, on all dnf distributions:

    sudo dnf install rpm-build perl-generators
    sudo dnf builddep MariaDB-*.src.rpm
    rpmbuild --rebuild MariaDB-*.src.rpm

using yum

    sudo yum install rpm-build yum-utils
    sudo yum-builddep MariaDB-*.src.rpm
    rpmbuild --rebuild MariaDB-*.src.rpm

using zypper

    rpm -q --requires -p MariaDB-*.src.rpm | xargs sudo zypper install rpm-build
    rpmbuild --rebuild MariaDB-*.src.rpm

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.