Unable to Install mariadb-devel on Rocky Linux 9 - Repository Issues and Modular Filtering

Hello Community,

I am running into an issue while trying to install the mariadb-devel package on my Rocky Linux 9 server. When I try to install it using the following command:

dnf install mariadb-devel

I receive the error :

All matches were filtered out by modular filtering for argument: mariadb-devel
Error: Unable to find a match: mariadb-devel

I’ve tried a few solutions, including:

  • Disabling modular filtering with --setopt=module_platform_id=platform:el9.
  • Checking and clearing the metadata cache with dnf clean all and dnf makecache.
  • Searching for the package via dnf search mariadb-devel, but no results were found.
  • Attempting to install from the MariaDB from “devel” repository enabled by running dnf install mariadb-devel --enablerepo=devel, but still no success in installing the package.

I also verified the repository configuration and attempted to reset any active module streams with dnf module reset mariadb -y.

Here are some additional details:

  • I have internet connectivity, and other packages are installing fine.
  • The package mariadb-devel is needed for development purposes (compiling and building against MariaDB).

Has anyone else faced a similar issue with installing mariadb-devel on Rocky Linux 9? Any help or guidance would be greatly appreciated.

Thanks in advance!

Try:

crb enable
dnf install mariadb-devel
1 Like

I was trying to enable it using the command:

crb enable

However, I was receiving the error:

bash: crb: command not found

After some troubleshooting and helpful suggestions from a community member, I learned that I needed to use dnf config-manager to enable the CRB repository, but first, I had to install the dnf-plugins-core package to have access to the config-manager command.

Here’s the solution that worked for me:

  1. Install dnf-plugins-core (if not already installed):
sudo dnf install dnf-plugins-core
  1. Enable the CRB repository: Once the plugins are installed, use the dnf config-manager command to enable the CRB repository:
sudo dnf config-manager --set-enabled crb
  1. Verify the repository: After enabling CRB, I verified that it was enabled using:
dnf repolist

And the CRB repository was listed among the enabled repositories.

I would like to especially thank @iwalker for pointing me in the right direction and helping me figure out that I needed crb enabled. Your suggestion was very helpful!

Thanks again to the community for the support!

1 Like

Strange that the crb command wasn’t there as it should usually be installed by default. But for completeness the crb command does the same as what you did manually using the dnf plugins just to actually type less :slight_smile:

On AlmaLinux 9 the dnf provides */crb says that Alma packs the ‘crb’ into epel-release,
which is not installed by default. If Rocky does the same, ‘epel-release’ is installed, and
no ‘crb’ then something is odd.

The ‘crb’ is a script that essentially runs:
dnf config-manager --enable crb
(The config-manager accepts both --enable and --set-enabled.)

crb is provided by epel-release, regardless of where it is obtained (EPEL itself or the extras repository in either distribution). The user did not indicate they installed epel-release, thus it stands to reason that the crb command does not exist.

3 Likes