Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 kmod

查看 kmod 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install kmod

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add kmod

Alpine Linux edge package indexes · kmod · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install kmod

Debian stable package indexes · kmod · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install kmod

Fedora Rawhide package metadata · kmod · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#kmod

nixpkgs package indexes · kmod · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S kmod

Arch Linux sync databases · kmod · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install kmod

openSUSE Tumbleweed package metadata · kmod · 来源: download.opensuse.org

概览

软件包摘要

Linux kernel module handling

命令和别名

  • depmod
  • insmod
  • kmod
  • lsmod
  • modinfo
  • modprobe
  • rmmod

历史

项目历史与用法

kmod is the Linux userspace module-management suite and library that replaced module-init-tools after that project reached end of life in 2011. It provides the familiar `depmod`, `insmod`, `lsmod`, `modinfo`, `modprobe`, and `rmmod` commands on top of libkmod.

项目历史

The kmod README states the project's goal directly: handle common Linux kernel module tasks and remain compatible with the tools, configurations, and indexes from module-init-tools. Its early NEWS entries show that version 1 provided libkmod plus module-init-tools-style command names, version 2 expanded modprobe compatibility, and version 3 bundled tools through a single `kmod` binary callable through symlinks.

That library-centered rewrite mattered because Linux systems had grown a complex set of module indexes, aliases, soft dependencies, compressed modules, and initramfs constraints. kmod turned those concerns into libkmod APIs consumed by command-line tools and by other system software.

采用历史

Distributions adopted kmod as the drop-in successor to module-init-tools during the early 2010s. Arch Linux announced the switch on 2012-01-21, and the kmod README records that later behavior changes and features followed feedback from the Linux kernel community and distributions.

使用方式

Administrators and boot-time services use kmod tools to query loaded modules, generate dependency indexes, inspect module metadata, load modules by alias or name, and remove modules. Configuration is driven by modprobe-style `.conf` files under Linux module configuration directories, while credentials are not part of the tool model.

为什么软件包爱好者会关心

kmod is foundational packaging infrastructure: it is a small package whose binaries often exist in `/sbin` or `/usr/bin`, but it participates in boot, initramfs generation, kernel upgrades, device probing, and driver packaging. Its symlinked multi-call command design also makes it a neat example of replacing legacy utilities while preserving the command surface scripts expect.

时间线

  • 2011: module-init-tools reached end of life, according to the kmod README.
  • 2011: kmod 1 shipped the first libkmod and module-init-tools-style tools.
  • 2011: kmod 3 added depmod and the single `kmod` binary with symlink-compatible tool names.
  • 2012-01-21: Arch Linux announced kmod replacing module-init-tools.
  • 2026: kmod 34 NEWS described Meson transition work, dlopen-based decompression libraries, shell completions, CI hardening, and documentation improvements.

Related projects

  • kmod is directly related to module-init-tools, the Linux kernel module loader interfaces, udev/systemd module-loading paths, initramfs tooling, and package scripts that regenerate module dependency indexes after kernel or driver installs.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 2 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Linux
/etc/modprobe.d/*.conf/run/modprobe.d/*.conf/usr/local/lib/modprobe.d/*.conf/lib/modprobe.d/*.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
depmodcli全局可执行文件
insmodcli全局可执行文件
kmodcli全局可执行文件
lsmodcli全局可执行文件
modinfocli全局可执行文件
modprobecli全局可执行文件
rmmodcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本34.2
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod

安装元数据

软件包元数据

软件包键brew:kmod
版本34.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/kmod
主页https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
仓库https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
上游文档https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/tree/README.md
许可证LGPL-2.1-or-later AND GPL-2.0-or-later
源码归档https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kmod/kmod-34.2.tar.xz
依赖openssl@3, xz, zlib-ng-compat, zstd
构建依赖meson, ninja, pkgconf, scdoc
Bottle可用 (于 arm64_linux, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namekmod
Version Scheme0
Revision0
Requirements
  • linux
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

kmod 34.2-2

tools for managing Linux kernel modules

sudo apt install kmod
  • Section: admin
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Kmod
Debian stable package indexes · deb.debian.org · Debian stable package indexes: kmod from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libkmod-dev 34.2-2

libkmod development files

sudo apt install libkmod-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: kmod
  • 1 依赖
  • normalized package name match
  • 匹配方式:Kmod
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libkmod-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libkmod2 34.2-2

libkmod shared library

sudo apt install libkmod2
  • Section: libs
  • Architecture: amd64
  • Source Package: kmod
  • 2 依赖
  • normalized package name match
  • 匹配方式:Kmod
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libkmod2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

kmod

nix profile install nixpkgs#kmod
  • normalized package name match
  • 匹配方式:Kmod
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: kmod from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

kmod 31+20240202-2ubuntu7

tools for managing Linux kernel modules

sudo apt install kmod
  • Section: admin
  • Architecture: amd64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Kmod
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: kmod from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libkmod-dev 31+20240202-2ubuntu7

libkmod development files

sudo apt install libkmod-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: kmod
  • 1 依赖
  • normalized package name match
  • 匹配方式:Kmod
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libkmod-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libkmod2 31+20240202-2ubuntu7

libkmod shared library

sudo apt install libkmod2
  • Section: libs
  • Architecture: amd64
  • Source Package: kmod
  • 4 依赖
  • normalized package name match
  • 匹配方式:Kmod
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libkmod2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

kmod 34.2-r1

Linux kernel module management utilities

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

kmod-bash-completion 34.2-r1

Bash completions for kmod

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod-bash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

kmod-dev 34.2-r1

Linux kernel module management utilities (development files)

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod-dev
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

kmod-doc 34.2-r1

Linux kernel module management utilities (documentation)

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

kmod-fish-completion 34.2-r1

Fish completions for kmod

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod-fish-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

kmod-libs 34.2-r1

Linux kernel module management utilities (libraries)

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod-libs
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

kmod-zsh-completion 34.2-r1

Zsh completions for kmod

http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary

sudo apk add kmod-zsh-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: kmod
  • normalized package name match
  • 匹配方式:Kmod
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kmod-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

kmod 34.2-4.fc44

Linux kernel module management utilities

https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git

sudo dnf install kmod
  • License: GPL-2.0-or-later AND GPL-3.0-or-later AND FSFUL AND FSFULLRWD AND LGPL-2.1-only AND LGPL-2.1-or-later AND X11
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: kmod
  • 9 依赖
  • 10 提供
  • normalized package name match
  • 匹配方式:Kmod
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: kmod from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

kmod-devel 34.2-4.fc44

Header files for kmod development

https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git

sudo dnf install kmod-devel
  • License: GPL-2.0-or-later AND GPL-3.0-or-later AND FSFUL AND FSFULLRWD AND LGPL-2.1-only AND LGPL-2.1-or-later AND X11
  • Category: Unspecified
  • Architecture: i686
  • Source Package: kmod
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Kmod
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: kmod-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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