macOS
brew install umockdevlocal Homebrew formula metadata
安装
brew install umockdevlocal Homebrew formula metadata
sudo apk add umockdevAlpine Linux edge package indexes · umockdev · 来源: dl-cdn.alpinelinux.org
sudo apt install umockdevDebian stable package indexes · umockdev · 来源: deb.debian.org
sudo dnf install umockdevFedora Rawhide package metadata · umockdev · 来源: dl.fedoraproject.org
nix profile install nixpkgs#umockdevnixpkgs package indexes · pkgs/by-name/um/umockdev/package.nix · 来源: api.github.com
sudo pacman -S umockdevArch Linux sync databases · umockdev · 来源: geo.mirror.pkgbuild.com
sudo zypper install umockdevopenSUSE Tumbleweed package metadata · umockdev · 来源: download.opensuse.org
概览
Mock hardware devices for creating unit tests and bug reporting
历史
umockdev is a Linux hardware-device mocking library and set of command-line tools for integration tests, bug reports, and regression reproduction.
The official README describes umockdev as a way to mock Linux devices for tests of hardware-related libraries and programs. It records device properties and behavior, then runs programs or test suites against a testbed loaded with those recorded devices.
The project is built around libumockdev, a preload library, and CLI tools including umockdev-record, umockdev-run, and umockdev-wrapper. Its feature set expanded from sysfs/udev property emulation into /dev nodes, read/write scripts, usbdevfs replay, pcap/usbmon replay, evdev, spidev, input events, and /proc mocking.
Official tags show releases by 2013, and the NEWS file documents long-running maintenance, including a 2020 switch to Meson and later fixes and feature updates. That history matches a specialized but durable Linux testing utility rather than a broad application.
umockdev's adoption is strongest in Linux hardware-adjacent testing. The README explicitly names gphoto and libmtp as examples where developers can receive recorded device dumps in bug reports and reproduce problems without owning the affected hardware.
The Homebrew input records downstream packaging across apk, Homebrew, Debian/Ubuntu gir/lib packages, dnf, Nix, pacman, and zypper. That breadth is notable because the tool remains Linux-specific and test-focused; package managers carry it for developers and CI systems that need reproducible hardware behavior.
Typical command-line use records a real device with umockdev-record, then replays it with umockdev-run around a test command. The README includes examples for PtP/MTP USB devices, usbmon pcap captures, tty devices such as modem sticks, Unix sockets, fake batteries, /proc, and /dev.
Library users create a UMockdevTestbed through C, Vala, Python, JavaScript, or other GObject-introspection languages, while the preload layer redirects /sys, /dev, /proc, netlink, and ioctl access into the sandbox.
umockdev is important to package maintainers because it turns hardware-dependent bugs into text artifacts that can be checked into tests or attached to bug reports. That makes CI and distro regression testing possible for code that would otherwise require physical devices.
It is also a classic niche systems package: small executable tools, a shared library, introspection bindings, preload behavior, and distro-specific packaging names that matter to anyone debugging Linux hardware stacks.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
umockdev-record | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
umockdev-run | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
umockdev-wrapper | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:umockdev |
|---|---|
| 版本 | 0.19.8 |
| 软件包管理器 | Homebrew |
| 主页 | https://launchpad.net/umockdev |
| 仓库 | https://github.com/martinpitt/umockdev |
| 最后更新 | 2026-07-06T10:19:20Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gir1.2-umockdev-1.0 0.19.1-3
introspection data for umockdev library
https://github.com/martinpitt/umockdev/
sudo apt install gir1.2-umockdev-1.0libumockdev-dev 0.19.1-3
development files and documentation for libumockdev
https://github.com/martinpitt/umockdev/
sudo apt install libumockdev-devlibumockdev0 0.19.1-3
hardware mocking testbed for bug reports and regression tests
https://github.com/martinpitt/umockdev/
sudo apt install libumockdev0umockdev 0.19.1-3
record/mock hardware devices for bug reports and regression tests
https://github.com/martinpitt/umockdev/
sudo apt install umockdevumockdev
nix profile install nixpkgs#umockdevgir1.2-umockdev-1.0 0.18.1-1build1
introspection data for umockdev library
https://github.com/martinpitt/umockdev/
sudo apt install gir1.2-umockdev-1.0libumockdev-dev 0.18.1-1build1
development files and documentation for libumockdev
https://github.com/martinpitt/umockdev/
sudo apt install libumockdev-devlibumockdev0 0.18.1-1build1
hardware mocking testbed for bug reports and regression tests
https://github.com/martinpitt/umockdev/
sudo apt install libumockdev0umockdev 0.18.1-1build1
record/mock hardware devices for bug reports and regression tests
https://github.com/martinpitt/umockdev/
sudo apt install umockdevumockdev 0.19.8-r0
Mock hardware devices for creating unit tests and bug reporting
https://github.com/martinpitt/umockdev
sudo apk add umockdevumockdev-dev 0.19.8-r0
Mock hardware devices for creating unit tests and bug reporting (development files)
https://github.com/martinpitt/umockdev
sudo apk add umockdev-devumockdev-doc 0.19.8-r0
Mock hardware devices for creating unit tests and bug reporting (documentation)
https://github.com/martinpitt/umockdev
sudo apk add umockdev-documockdev 0.19.8-2.fc45
Mock hardware devices
https://github.com/martinpitt/umockdev
sudo dnf install umockdevumockdev-devel 0.19.8-2.fc45
Development packages for umockdev
https://github.com/martinpitt/umockdev
sudo dnf install umockdev-develumockdev 0.19.8-1
Record/mock hardware devices for bug reports and regression tests
https://github.com/martinpitt/umockdev/
sudo pacman -S umockdevlibumockdev-preload0 0.19.7-1.4
Shared library for umockdev-preload
https://github.com/martinpitt/umockdev/
sudo zypper install libumockdev-preload0来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.