macOS
brew install libosinfolocal Homebrew formula metadata
sudo port install libosinfoMacPorts ports tree · sysutils/libosinfo/Portfile · 来源: api.github.com
安装
brew install libosinfolocal Homebrew formula metadata
sudo port install libosinfoMacPorts ports tree · sysutils/libosinfo/Portfile · 来源: api.github.com
sudo apk add libosinfoAlpine Linux edge package indexes · libosinfo · 来源: dl-cdn.alpinelinux.org
sudo dnf install libosinfoFedora Rawhide package metadata · libosinfo · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libosinfonixpkgs package indexes · pkgs/by-name/li/libosinfo/package.nix · 来源: api.github.com
sudo pacman -S libosinfoArch Linux sync databases · libosinfo · 来源: geo.mirror.pkgbuild.com
sudo zypper install libosinfoopenSUSE Tumbleweed package metadata · libosinfo · 来源: download.opensuse.org
sudo apt install gir1.2-libosinfo-1.0Debian stable package indexes · gir1.2-libosinfo-1.0 · 来源: deb.debian.org
概览
Operating System information database
历史
libosinfo is the C/GObject library in the libosinfo family: a shared database, API, and set of command-line tools for describing guest operating systems, hypervisors, virtual hardware, install media, and installation resources used by virtualization provisioning tools.
The project published its first public libosinfo tag in October 2011, after establishing a model in which operating-system facts live in a common XML database and applications query them through a reusable library rather than carrying their own detection tables. The official site describes the project as three cooperating parts: metadata database, GObject API, and query/extraction tools.
By 2016 the project had formalized adjacent pieces such as osinfo-db-tools for importing, exporting, validating, and packaging the database files, and libosinfo 1.0.0 was tagged in October 2016. Later releases continued the steady maintenance pattern expected from low-level virtualization infrastructure: translation updates, build-system work, memory fixes, and compatibility with XML library changes.
libosinfo became useful wherever virtual-machine front ends need to choose sane defaults for a guest: identifying ISO media, mapping an OS to supported virtual devices, finding install trees, and generating unattended-install scripts. Its value is strongest in Linux virtualization stacks because multiple applications can share the same operating-system knowledge instead of each shipping stale lists.
Packagers usually split the ecosystem into libosinfo, osinfo-db, and osinfo-db-tools. The library is consumed by programs through the C API or GObject Introspection bindings, while users and maintainers interact with tools such as osinfo-query, osinfo-detect, osinfo-install-script, and osinfo-db-import.
For package maintainers, libosinfo is a classic data-versus-code package: the library changes slowly, but the OS database needs frequent updates as distributions, Windows releases, and install media change. That split explains why package freshness can visibly affect VM creation dialogs and automated provisioning even when the hypervisor itself is working.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
osinfo-detect | cli | 全局可执行文件 | |
osinfo-install-script | cli | 全局可执行文件 | |
osinfo-query | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:libosinfo |
|---|---|
| 版本 | 1.12.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libosinfo |
| 主页 | https://libosinfo.org/ |
| 仓库 | https://gitlab.com/libosinfo/libosinfo |
| 上游文档 | https://libosinfo.org/ |
| 许可证 | LGPL-2.0-or-later |
| 源码归档 | https://releases.pagure.org/libosinfo/libosinfo-1.12.0.tar.xz |
| 最后更新 | 2026-07-24T11:15:24Z |
| Pulse | updated |
| 依赖 | gettext, glib, libsoup, osinfo-db, usb.ids |
| 构建依赖 | gettext, gobject-introspection, meson, ninja, pkgconf, vala |
| macOS 提供的库 | libxml2, libxslt |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libosinfo |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gir1.2-libosinfo-1.0 1.12.0-2
GObject introspection data for libosinfo
sudo apt install gir1.2-libosinfo-1.0libosinfo-1.0-0 1.12.0-2
Library for managing information about operating systems and hypervisors
sudo apt install libosinfo-1.0-0libosinfo-1.0-dev 1.12.0-2
libosinfo development files
sudo apt install libosinfo-1.0-devlibosinfo-bin 1.12.0-2
Tools for querying the osinfo database via libosinfo
sudo apt install libosinfo-binlibosinfo-l10n 1.12.0-2
Translations for libosinfo
sudo apt install libosinfo-l10nlibosinfo
nix profile install nixpkgs#libosinfogir1.2-libosinfo-1.0 1.11.0-2build3
GObject introspection data for libosinfo
sudo apt install gir1.2-libosinfo-1.0libosinfo-1.0-0 1.11.0-2build3
Library for managing information about operating systems and hypervisors
sudo apt install libosinfo-1.0-0libosinfo-1.0-dev 1.11.0-2build3
libosinfo development files
sudo apt install libosinfo-1.0-devlibosinfo-bin 1.11.0-2build3
Tools for querying the osinfo database via libosinfo
sudo apt install libosinfo-binlibosinfo-l10n 1.11.0-2build3
Translations for libosinfo
sudo apt install libosinfo-l10nlibosinfo 1.12.0-r0
library for managing OS information for virtualization
sudo apk add libosinfolibosinfo-dev 1.12.0-r0
library for managing OS information for virtualization (development files)
sudo apk add libosinfo-devlibosinfo-doc 1.12.0-r0
library for managing OS information for virtualization (documentation)
sudo apk add libosinfo-doclibosinfo-lang 1.12.0-r0
Languages for package libosinfo
sudo apk add libosinfo-langlibosinfo 1.12.0-9.fc45
A library for managing OS information for virtualization
sudo dnf install libosinfo来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.