How to Install DNF5 on Fedora 39 Linux

DNF5 is the next-generation version of the DNF package manager, designed to improve performance, security, and flexibility in managing software on Fedora and other Red Hat-based Linux distributions.

If you’re using Fedora 39 and want to install DNF5, this article will guide you through the steps to install and configure it.

Step 1: Update Fedora System

It’s always a good idea to update your system before installing new software, which ensures that all the existing packages are up to date, reducing the risk of conflicts.

sudo dnf update -y

This command will update all installed packages on your system to their latest versions.

Step 2: Enable the DNF5 Repository

DNF5 is typically available in the Fedora repositories, but if it’s not installed or if you want to install a specific version, you may need to enable the Fedora DNF5 repository.

sudo dnf install dnf-plugin-core -y

This command installs the dnf-plugin-core, which allows you to manage and enable additional repositories.

Step 3: Install DNF5 in Fedora

Now that the repository is enabled, you can proceed to install DNF5 by running the following command.

sudo dnf install dnf5 -y

This will download and install DNF5 along with any required dependencies. The -y flag automatically answers "yes" to all prompts, so you don’t need to confirm each step.

Once the installation is complete, you can verify that DNF5 is installed correctly.

dnf5 --version

Step 4: Set DNF5 as the Default Package Manager (Optional)

If you want to make DNF5 the default package manager on your system, you can update the symbolic link for dnf to point to DNF5. This step is optional, as Fedora 39 may still use DNF4 by default.

To set DNF5 as the default, run:

sudo ln -sf /usr/bin/dnf5 /usr/bin/dnf

This command replaces the existing dnf command with DNF5. From now on, when you run dnf in the terminal, it will use DNF5 instead of the older version.

Step 5: Update DNF5 (If Needed)

After installing DNF5, it’s a good idea to check for any updates for DNF5 itself.

sudo dnf5 update -y

This will ensure that you have the latest updates and bug fixes for DNF5, keeping your system secure and up-to-date.

Conclusion

You’ve successfully installed DNF5 on Fedora 39. With this new version of the package manager, you can enjoy faster package installations, improved security, and more efficient memory usage.

DNF5 also offers a more flexible plugin system, making it easier to extend and customize the package management experience.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.