# Install libvirt with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

C virtualization API. Version 12.5.0 via Homebrew; verified 2026-07-01.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libvirt
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libvirt
```

  Evidence: 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
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install libvirt
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:libvirt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libvirt>
- **Version:** 12.5.0
- **Source summary:** C virtualization API
- **Homepage:** <https://libvirt.org/>
- **Repository:** <https://gitlab.com/libvirt/libvirt>
- **Upstream docs:** <https://libvirt.org/docs>
- **License:** LGPL-2.1-or-later AND GPL-2.0-or-later
- **Source archive:** <https://download.libvirt.org/libvirt-12.5.0.tar.xz>
- **Last updated:** 2026-07-01T13:25:25Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- libvirtd (cli)
- virsh (cli)
- virt-admin (cli)
- virt-host-validate (cli)
- virt-login-shell (cli)
- virt-pki-query-dn (cli)
- virt-pki-validate (cli)
- virt-qemu-qmp-proxy (cli)
- virt-qemu-run (cli)
- virt-qemu-sev-validate (cli)
- virt-ssh-helper (cli)
- virt-xml-validate (cli)
- virtchd (cli)
- virtlockd (cli)
- virtlogd (cli)
- virtlxcd (cli)
- virtnetworkd (cli)
- virtnwfilterd (cli)
- virtproxyd (cli)
- virtqemud (cli)
- virtsecretd (cli)
- virtstoraged (cli)
- virtvboxd (cli)
- 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)

## Dependencies

- gettext
- glib
- gnutls
- json-c
- libiscsi
- libssh2
- readline

## Build dependencies

- docutils
- gettext
- meson
- ninja
- pkgconf

## Uses from macOS

- curl
- libxml2

## Install behavior

- Post-install hook: not defined
- Service: declared
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 12.5.0
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://libvirt.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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


## Security Notes

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

- **Geiger risk:** orange / medium
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libvirt
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [gnutls](https://www.automicvault.com/pkg/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [libiscsi](https://www.automicvault.com/pkg/brew/libiscsi/) - Runtime dependency declared by Homebrew.
- [docutils](https://www.automicvault.com/pkg/brew/docutils/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [terraform-provider-libvirt](https://www.automicvault.com/pkg/brew/terraform-provider-libvirt/) - Popular package that depends on this formula.
- [govc](https://www.automicvault.com/pkg/brew/govc/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [macpine](https://www.automicvault.com/pkg/brew/macpine/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [pvetui](https://www.automicvault.com/pkg/brew/pvetui/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [virtctl](https://www.automicvault.com/pkg/brew/virtctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [incus](https://www.automicvault.com/pkg/brew/incus/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [kraftkit](https://www.automicvault.com/pkg/brew/kraftkit/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [colima](https://www.automicvault.com/pkg/brew/colima/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [container](https://www.automicvault.com/pkg/brew/container/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [qemu](https://www.automicvault.com/pkg/brew/qemu/) - Local package facts share a topical domain. Shared terms: cli, glib, gnutls, hypervisor, qemu.
- [osinfo-db-tools](https://www.automicvault.com/pkg/brew/osinfo-db-tools/) - Both packages work with overlapping file formats or content types. Shared terms: cli, gettext, glib, json, validate.

## Combined YAML source

View the package source record on GitHub. [combined/libvirt.yml](https://github.com/automic-vault/db/blob/main/combined/libvirt.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
