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

**URL:** <https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [November 20, 2024, 9:25am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553 "2024-11-20T09:25:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnkitSurana](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AnkitSurana](https://forums.rockylinux.org/u/AnkitSurana)\
**Post date:** [November 20, 2024, 9:25am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/1 "2024-11-20T09:25:59Z")

</div>

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:

```auto
dnf install mariadb-devel

```

I receive the error :

```auto
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!

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 20, 2024, 10:10am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/2 "2024-11-20T10:10:54Z")

</div>

Try:

```auto
crb enable
dnf install mariadb-devel

```

---

<div class="post-metadata">

**Author:** ![AnkitSurana](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AnkitSurana](https://forums.rockylinux.org/u/AnkitSurana)\
**Post date:** [November 21, 2024, 5:42am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/3 "2024-11-21T05:42:47Z")

</div>

I was trying to enable it using the command:

```auto
crb enable

```

However, I was receiving the error:

```auto
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):

```auto
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:

```auto
sudo dnf config-manager --set-enabled crb

```

1. **Verify the repository** : After enabling CRB, I verified that it was enabled using:

```auto
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!

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 21, 2024, 7:17am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/4 "2024-11-21T07:17:06Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [November 21, 2024, 7:44am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/5 "2024-11-21T07:44:40Z")

</div>

> [@iwalker](#):
>
> Strange that the crb command wasn’t there as it should usually be installed by default.

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.)

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [November 21, 2024, 8:38am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/6 "2024-11-21T08:38:15Z")

</div>

> [@jlehtone](#):
>
> 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.

`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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [January 20, 2025, 8:38am UTC](https://forums.rockylinux.org/t/unable-to-install-mariadb-devel-on-rocky-linux-9-repository-issues-and-modular-filtering/16553/7 "2025-01-20T08:38:27Z")

</div>

Closed on January 20, 2025, 8:38am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
