# HOWTO switch dnf module to default perl to version 5.24

**URL:** <https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 23, 2021, 8:15pm UTC](https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126 "2021-06-23T20:15:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![warron.french](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/warron.french/32/869_2.png) [@warron.french](https://forums.rockylinux.org/u/warron.french)\
**Post date:** [June 23, 2021, 8:15pm UTC](https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126/1 "2021-06-23T20:15:47Z")

</div>

I am using CentOS-8.4.2105 and am having issues when I execute a

```auto
dnf update

```

I end up with complaints about the version of perl being version mismatched. I posted a question on the CentOS Forums a few weeks ago and was making a little bit of progress with trying to resolve the issue.

The problem is the default version of perl modules is 5.26.  
I executed the following command and share with CentOS Forums:

```auto
dnf module list perl

```

Doing so prints out a table and indicates different streams (versions) and that 5.26 is both enabled and the default. This is from fresh install.

How do I deliberately set the perl module stream to version 5.24? I know how to enable it, but that is not the same as setting it as the default.

I also used the command:

```auto
dnf module switch-to perl:5.24

```

That had no effect.

Thanks to anyone who understands this process.

---

<div class="post-metadata">

**Author:** ![mustafa](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mustafa/32/708_2.png) [@mustafa](https://forums.rockylinux.org/u/mustafa)\
**Post date:** [June 23, 2021, 11:37pm UTC](https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126/2 "2021-06-23T23:37:59Z")

</div>

You can do the following:

```auto
sudo dnf module reset perl
sudo dnf module enable perl:5.24

```

You will see some conflicts like

```auto
 Problem: module perl:5.24:8040020210602173155:162f5753-0.x86_64 conflicts with module(perl:5.26) provided by perl:5.26:8040020210601184636:9f9e2e7e-0.x86_64
  - module perl:5.26:8040020210601184636:9f9e2e7e-0.x86_64 conflicts with module(perl:5.24) provided by perl:5.24:8040020210602173155:162f5753-0.x86_64
  - module freeradius:3.0:8040020210620073944:1aedcbfe-0.x86_64 requires module(perl:5.26), but none of the providers can be installed
  - conflicting requests

```

But that’s normal since freeradius only supports perl:5.26

Hope this helps!

---

<div class="post-metadata">

**Author:** ![warron.french](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/warron.french/32/869_2.png) [@warron.french](https://forums.rockylinux.org/u/warron.french)\
**Post date:** [June 24, 2021, 11:24am UTC](https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126/3 "2021-06-24T11:24:21Z")

</div>

Thanks Mustafa. Will that set the default version to 5.24 for perl modules?

I had already tried the `sudo dnf module enable perl:5.24` and that enabled it (obviously) but did not set it as the default.

_Maybe I did something incorrectly?_

---

<div class="post-metadata">

**Author:** ![mustafa](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mustafa/32/708_2.png) [@mustafa](https://forums.rockylinux.org/u/mustafa)\
**Post date:** [June 24, 2021, 5:26pm UTC](https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126/4 "2021-06-24T17:26:19Z")

</div>

No problem! This will enable the perl 5.24 stream.

To sync/reinstall packages you can either do

```auto
sudo dnf distrosync --allowerasing

```

or

```auto
sudo dnf install --allowerasing perl

```

to reinstall the correct packages.

What you pick depends on your use case and what you want to reinstall. Hopefully that works for you!

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 4:09am UTC](https://forums.rockylinux.org/t/howto-switch-dnf-module-to-default-perl-to-version-5-24/3126/5 "2023-08-25T04:09:01Z")

</div>

Closed on August 25, 2023, 4:09am UTC


