Solve “Error: Unable to find a match: libvirt-devel”

The error message “No match for argument: libvirt-devel” may appear on CentOS Stream 9 / Rocky Linux 9 or AlmaLinux 9 when you attempt to install the libvirt-devel package.

$ sudo dnf install libvirt-devel
Last metadata expiration check: 2:32:45 ago on Tue 23 Jul 2024 03:29:08 PM UTC.
No match for argument: libvirt-devel
Error: Unable to find a match: libvirt-devel

On RHEL 9 based systems, the package might not be available in the default enabled repositories. However, we can enable appropriate repo to get the package and install it on the local system.

To solve the error, first enable crb repository.

sudo dnf config-manager --set-enabled crb

The crb (“CodeReady Builder“) repository contains additional packages for Red Hat-based distributions not in Base and AppStream. Most packages available on this repository are development tools and libraries.

Once the repository is active, retry the installation of the libvirt-devel package.

$ sudo dnf install libvirt-devel
Rocky Linux 9 - BaseOS                                                                                                                                                 15 kB/s | 4.1 kB     00:00
Rocky Linux 9 - AppStream                                                                                                                                              19 kB/s | 4.5 kB     00:00
Rocky Linux 9 - CRB                                                                                                                                                   6.5 MB/s | 2.4 MB     00:00
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                             Architecture                             Version                                               Repository                                   Size
======================================================================================================================================================================================================
Installing:
 libvirt-devel                                       x86_64                                   10.0.0-6.3.el9_4                                      crb                                         203 k
Installing dependencies:
 cyrus-sasl-gssapi                                   x86_64                                   2.1.27-21.el9                                         baseos                                       26 k
 libvirt-libs                                        x86_64                                   10.0.0-6.3.el9_4                                      appstream                                   4.9 M
 yajl                                                x86_64                                   2.1.0-22.el9                                          appstream                                    37 k

Transaction Summary
======================================================================================================================================================================================================
Install  4 Packages

Total download size: 5.2 M
Installed size: 28 M
Is this ok [y/N]: y

After enabling crb you should be able to install libvirt-devel package on the system. You can contact us for any support related tasks on Virtualization and Cloud projects. Thank you!.

Your IT Journey Starts Here!

Ready to level up your IT skills? Our new eLearning platform is coming soon to help you master the latest technologies.

Be the first to know when we launch! Join our waitlist now.

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Let’s clarify the differences between merge requests (commonly called pull requests in GitHub), releases, release candidates (RCs), tags, and branches […]

Kind (which in full means “Kubernetes IN Docker”), is a command line tool that enables you to run Kubernetes clusters […]

Are you looking for an easy way to migrate packages from one cPanel server to a new cPanel server? In […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.