# Installer libvirt avec Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libvirt pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:libvirt
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install libvirt
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libvirt
```

  Preuve: MacPorts ports tree: sysutils/libvirt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libvirt
```

  Preuve: Alpine Linux edge package indexes: libvirt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libvirt
```

  Preuve: Fedora Rawhide package metadata: libvirt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libvirt
```

  Preuve: nixpkgs package indexes: pkgs/by-name/li/libvirt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libvirt
```

  Preuve: Arch Linux sync databases: libvirt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libvirt
```

  Preuve: openSUSE Tumbleweed package metadata: libvirt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install libnss-libvirt
```

  Preuve: Debian stable package indexes: libnss-libvirt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Faits du paquet

- **Clé du paquet:** brew:libvirt
- **Gestionnaire de paquets:** Homebrew
- **Version:** 12.5.0
- **Résumé source:** C virtualization API
- **Page d'accueil:** <https://libvirt.org/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- libvirtd (alias)
- virsh (alias)
- virt-admin (alias)
- virt-host-validate (alias)
- virt-login-shell (alias)
- virt-pki-query-dn (alias)
- virt-pki-validate (alias)
- virt-qemu-qmp-proxy (alias)
- virt-qemu-run (alias)
- virt-qemu-sev-validate (alias)
- virt-ssh-helper (alias)
- virt-xml-validate (alias)
- virtchd (alias)
- virtlockd (alias)
- virtlogd (alias)
- virtlxcd (alias)
- virtnetworkd (alias)
- virtnwfilterd (alias)
- virtproxyd (alias)
- virtqemud (alias)
- virtsecretd (alias)
- virtstoraged (alias)
- virtvboxd (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 12.5.0
## Historique du projet et usages

libvirt is the long-lived virtualization management API and daemon stack that gives tools a common way to manage domains, networks, storage, and host resources across hypervisors.

### Historique du projet

The project was created to provide a common and stable layer for managing virtualized domains on local or remote nodes. Its own goals page emphasizes API stability, secure remote management, resource enumeration, and the ability to insulate applications from frequent changes in lower-level virtualization frameworks.

libvirt became especially important as Linux virtualization consolidated around QEMU and KVM while still needing to interoperate with Xen, LXC, bhyve, VMware, VirtualBox, Hyper-V, and other backends. The project website describes a portable C API, stateful host daemons for some hypervisors, and language bindings layered on top of the core API.

### Historique d'adoption

The adoption story is unusually broad for a system library. The official applications page lists command-line tools, desktop applications, provisioning tools, monitoring systems, web applications, configuration-management integrations, backup tools, and infrastructure-as-a-service stacks using the libvirt API.

For package managers, libvirt is not just a library dependency; it is an ecosystem root. Installing it can bring daemons such as libvirtd or modular virt* daemons, virsh, validation tools, NSS integration packages, storage and network drivers, language bindings, and downstream tools such as virt-manager, virt-install, Vagrant providers, and cloud or CI integrations.

### Modes d'utilisation

Administrators commonly use virsh and libvirt daemons to define, start, stop, migrate, inspect, and automate virtual machines and container-like domains. Application developers use the API and bindings to build higher-level management tools while avoiding direct hypervisor-specific control protocols.

On developer workstations it is often the package behind local KVM/QEMU workflows; on servers it is the control plane layer used by provisioning, monitoring, and orchestration software that needs stable VM lifecycle operations.

### Pourquoi les passionnés de paquets s'y intéressent

libvirt is package-nerd famous because it sits at the junction of init systems, daemon socket activation, TLS and PKI material, kernel capabilities, QEMU/KVM feature flags, storage pools, virtual networking, and language bindings. It is the sort of dependency whose packaging details define whether virtualization feels boring or impossible.

It also illustrates why stable C APIs matter in infrastructure: a large ecosystem of frontends can keep working while hypervisors, host operating systems, and security models change underneath.

### Chronologie

- 2005: Early libvirt releases began the public release history recorded by the project news archive.
- 2012: The 1.0 series marked libvirt as a mature cross-hypervisor management layer.
- 2021-01-15: libvirt 7.0.0 release notes recorded a formal handover of release tarball signing.
- 2026-07-01: The project website listed support for QEMU/KVM, Xen, LXC, bhyve, VMware, Hyper-V, VirtualBox, macOS Hypervisor.framework, and other drivers.

### Related projects

- QEMU and KVM are among the most common backends managed through libvirt.
- Xen, LXC, bhyve, VMware ESX/vCenter, Hyper-V, VirtualBox, Virtuozzo, and POWER Hypervisor are supported or related virtualization targets.
- virt-manager, virt-install, guestfish, vagrant-libvirt, and many monitoring and provisioning tools sit above the libvirt API.

### Sources

- <https://gitlab.com/libvirt/libvirt>
- <https://libvirt.org/>
- <https://libvirt.org/apps.html>
- <https://libvirt.org/downloads.html>
- <https://libvirt.org/goals.html>
- <https://libvirt.org/news.html>


## Notes de sécurité

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Risque Geiger:** orange / moyen
- broad file, network, media, or database tool signal
- formula declares a Homebrew service
- generalized runtime or code generation signal
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/libvirt/libvirtd.conf, /etc/libvirt/libvirt.conf, $XDG_CONFIG_HOME/libvirt/libvirt.conf

## Credential files

- Unix: /etc/pki/CA/cacert.pem, /etc/pki/libvirt/servercert.pem, /etc/pki/libvirt/private/serverkey.pem
## Autres enregistrements de gestionnaires de paquets

- Debian apt - libnss-libvirt - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libnss-libvirt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization library - NSS plugins | https://libvirt.org/nss.html
- Debian apt - libvirt-clients - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-clients from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization library - clients | https://libvirt.org/
- Debian apt - libvirt-clients-qemu - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-clients-qemu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization library - clients (QEMU specific) | https://libvirt.org/
- Debian apt - libvirt-common - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization library - common files | https://libvirt.org/
- Debian apt - libvirt-daemon - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon | https://libvirt.org/daemons.html#monolithic-driver-daemon
- Debian apt - libvirt-daemon-common - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - common files | https://libvirt.org/
- Debian apt - libvirt-daemon-config-network - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-config-network from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - configuration files (default network) | https://libvirt.org/
- Debian apt - libvirt-daemon-config-nwfilter - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-config-nwfilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - configuration files (default network filters) | https://libvirt.org/
- Debian apt - libvirt-daemon-driver-interface - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-interface from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - interface driver | https://libvirt.org/
- Debian apt - libvirt-daemon-driver-lxc - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-lxc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - LXC connection driver | https://libvirt.org/drvlxc.html
- Debian apt - libvirt-daemon-driver-network - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-network from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - network driver | https://libvirt.org/formatnetwork.html
- Debian apt - libvirt-daemon-driver-nodedev - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-nodedev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - node device (nodedev) driver | https://libvirt.org/drvnodedev.html
- Debian apt - libvirt-daemon-driver-nwfilter - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-nwfilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - network filter (nwfilter) driver | https://libvirt.org/formatnwfilter.html
- Debian apt - libvirt-daemon-driver-qemu - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-qemu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - QEMU connection driver | https://libvirt.org/drvqemu.html
- Debian apt - libvirt-daemon-driver-secret - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-secret from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - secret driver | https://libvirt.org/drvsecret.html
- Debian apt - libvirt-daemon-driver-storage - 11.3.0-3+deb13u2: normalized package name match | Debian stable package indexes: libvirt-daemon-driver-storage from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | virtualization daemon - storage driver | https://libvirt.org/storage.html


## Combined YAML source

View the package source record on GitHub. [combined/libvirt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libvirt.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
