# How to remove unwanted module

**URL:** <https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [February 24, 2026, 12:25pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241 "2026-02-24T12:25:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [February 24, 2026, 12:25pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/1 "2026-02-24T12:25:54Z")

</div>

```auto
Last metadata expiration check: 0:01:27 ago on Tue Feb 24 13:20:21 2026.
Rocky Linux 9 - AppStream
Name Stream Profiles Summary     
mysql 8.4 api, client, filter, server [d] MySQL Module

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

```

This is holding my updates. I use mariadb which has always updateted until last major upgrade.

---

<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:** [February 24, 2026, 12:35pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/2 "2026-02-24T12:35:57Z")

</div>

Could it be:

```bash
dnf module disable mysql

```

(See `man dnf` for options that the module accepts.)

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [February 24, 2026, 12:46pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/3 "2026-02-24T12:46:11Z")

</div>

> [@jlehtone](#):
>
> `dnf module disable mysql`

Not the solution.

```auto
2026-02-24T13:41:57+0100 CRITICAL Error: Transaction test error:
  file /usr/share/mysql/charsets/Index.xml conflicts between attempted installs of mysql-common-8.0.45-1.el9_7.x86_64 and MariaDB-common-10.6.25-1.el9.x86_64
  file /usr/share/mysql/charsets/armscii8.xml conflicts between attempted installs of mysql-common-8.0.45-1.el9_7.x86_64 and MariaDB-common-10.6.25-1.el9.x86_64
  file /usr/share/mysql/charsets/ascii.xml conflicts between attempted installs of mysql-common-8.0.45-1.el9_7.x86_64 and MariaDB-common-10.6.25-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1250.xml conflicts between attempted installs of mysql-common-8.0.45-1.el9_7.x86_64 and MariaDB-common-10.6.25-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1251.xml conflicts between attempted installs of mysql-common-8.0.45-1.el9_7.x86_64 and MariaDB-common-10.6.25-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1256.xml conflicts between attempted installs of mysql-common-8.0.45-1.el9_7.x86_64 and MariaDB-common-10.6.25-1.el9.x86_64

```

---

<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:** [February 24, 2026, 1:02pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/4 "2026-02-24T13:02:04Z")

</div>

You would only have a mix and match of packages if at one point that module was used. Also, it depends if using mariadb that is available in Rocky by default, or also if you installed the MariaDB community repository. So not enough info on your situation right now.

But, usually you can use commands like:

```auto
dnf module reset mysql

```

which would effectively put it back to the defaults, so effectively unused. But again, it will only work if that module was used at some point.

Provide a list of repositories your system is using, eg:

```auto
dnf repolist

```

and also what files exist under `/etc/yum.repos.d` since we can then see if you are using third party repos which are not the responsibility of the Rocky team and potentially could explain the amout of problem you are having.

Also do:

```auto
rpm -qa | grep -i mysql

```

and:

```auto
rpm -qa | grep -i mariadb

```

Someone here had this exact same problem or similar already on this forum already due to misconfiguration caused by them.

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [February 24, 2026, 7:46pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/5 "2026-02-24T19:46:45Z")

</div>

> [@iwalker](#):
>
> `dnf repolist`

```auto
[root@server5 ~]# dnf repolist
repo id repo name
appstream Rocky Linux 9 - AppStream
baseos Rocky Linux 9 - BaseOS
crb Rocky Linux 9 - CRB
devel Rocky Linux 9 - Devel WARNING! FOR BUILDROOT ONLY DO NOT LEAVE ENABLED
epel Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
extras Rocky Linux 9 - Extras
mariadb-main MariaDB Server
mariadb-maxscale MariaDB MaxScale
mariadb-tools MariaDB Tools
ookla_speedtest-cli ookla_speedtest-cli
ookla_speedtest-cli-source ookla_speedtest-cli-source
plus Rocky Linux 9 - Plus
remi-modular Remi's Modular repository for Enterprise Linux 9 - x86_64
remi-safe Safe Remi's RPM repository for Enterprise Linux 9 - x86_64
rpmfusion-free-updates RPM Fusion for EL 9 - Free - Updates
rpmfusion-nonfree-updates RPM Fusion for EL 9 - Nonfree - Updates

```

```auto
[root@server5 ~]# rpm -qa | grep -i mysql
php-pecl-mysql-1.0.0-0.25.20210423.ca514c4.el9.remi.8.2.x86_64
postfix-mysql-3.5.25-1.el9.x86_64
perl-DBD-MySQL-4.050-13.el9.x86_64
dovecot-mysql-2.3.16-15.el9.x86_64
php-mysqlnd-8.2.29-1.el9.remi.x86_64
mysql-selinux-1.0.14-1.el9_6.noarch

```

```auto
[root@server5 ~]# rpm -qa | grep -i mariadb
perl-DBD-MariaDB-1.21-16.el9_0.x86_64
MariaDB-shared-10.6.24-1.el9.x86_64
MariaDB-common-10.6.24-1.el9.x86_64
MariaDB-client-10.6.24-1.el9.x86_64
MariaDB-server-10.6.24-1.el9.x86_64
MariaDB-backup-10.6.24-1.el9.x86_64

```

The mysql is added withe the november/december upgrade to the next version.

I installed rocky with mariadb. Mysql was never used.

dnf module reset mysql didn’t work.

---

<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:** [February 24, 2026, 8:13pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/6 "2026-02-24T20:13:42Z")

</div>

> [@robkalmeijer](#):
>
> ```auto
> mariadb-main MariaDB Server
> mariadb-maxscale MariaDB MaxScale
> mariadb-tools MariaDB Tools
> 
> ```

These are not Rocky repositories. Also `mysql-common` is not installed either. Therefore a package is trying to pull it in which is conflicting with the mariadb repositories that you added to your system.

The package `perl-DBD-MySQL` requires `mysql-common`. You can try removing that package and see if the problem goes away. Assuming it doesn’t try to remove other packages that you need.

Also:

```auto
root@rocky9:~# dnf list --showduplicates perl-DBD-MySQL
Last metadata expiration check: 0:03:29 ago on Tue 24 Feb 2026 09:19:05 PM CET.
Available Packages
perl-DBD-MySQL.x86_64 4.053-1.el9.0.1 appstream

```

you can see why this is happening. The version you have installed is older. The one available on my system is the latest. Hence your system is trying to install the latest, because you have the old one installed. But due to the fact it has dependencies on `mysql-common`, it can’t be installed because it conflicts with `mariadb-common`.

So removing that package should fix your problem, but again you have to make sure when you remove it, it isn’t going to remove any other additional packages that you need. It probably won’t, but we will see as soon as you try to remove it, as it will tell you what else it will remove.

You also have `perl-DBD-MariaDB` installed, so you only need one of them. The `perl-DBD-MySQL` was left installed from whatever was installed on your server ages ago and the package got left behind.

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [March 3, 2026, 12:50pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/7 "2026-03-03T12:50:47Z")

</div>

I removed perl\_DBD-MySQL.

It solved the problem. Update is running now.

Thanks

---

<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:** [May 2, 2026, 12:51pm UTC](https://forums.rockylinux.org/t/how-to-remove-unwanted-module/20241/8 "2026-05-02T12:51:14Z")

</div>

Closed on May 2, 2026, 12:51pm UTC

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