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