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

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

## 安装

```sh
sudo av install brew:systemd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install systemd
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install systemd
```

  证据: Debian stable package indexes: systemd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install systemd
```

  证据: Fedora Rawhide package metadata: systemd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#systemd
```

  证据: nixpkgs package indexes: systemd from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S systemd
```

  证据: Arch Linux sync databases: systemd from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install systemd
```

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

- apk (92%):

```sh
sudo apk add busctl
```

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

## 软件包事实

- **软件包键:** brew:systemd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/systemd>
- **版本:** 261.2
- **来源摘要:** System and service manager
- **主页:** <https://systemd.io>
- **仓库:** <https://github.com/systemd/systemd>
- **上游文档:** <https://systemd.io>
- **许可证:** LGPL-2.1-or-later AND GPL-2.0-or-later AND CC0-1.0 AND LGPL-2.0-or-later AND MIT AND MIT-0 AND LicenseRef-Homebrew-public-domain AND (LGPL-2.0-or-later WITH Linux-syscall-note) AND (GPL-1.0-or-later WITH Linux-syscall-note) AND (GPL-2.0-or-later WITH Linux-syscall-note) AND (GPL-2.0-only WITH Linux-syscall-note) AND (BSD-3-Clause OR (GPL-2.0-only WITH Linux-syscall-note)) AND (MIT OR (GPL-2.0-only WITH Linux-syscall-note)) AND (MIT OR (GPL-2.0-or-later WITH Linux-syscall-note)) AND (GPL-2.0-only OR BSD-2-Clause)
- **源码归档:** <https://github.com/systemd/systemd/archive/refs/tags/v261.2.tar.gz>
- **最后更新:** 2026-07-25T14:45:05Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- bootctl (cli)
- busctl (cli)
- coredumpctl (cli)
- halt (cli)
- hostnamectl (cli)
- init (cli)
- journalctl (cli)
- kernel-install (cli)
- localectl (cli)
- loginctl (cli)
- machinectl (cli)
- mount.ddi (cli)
- mount.mstack (cli)
- mount.storage (cli)
- networkctl (cli)
- oomctl (cli)
- portablectl (cli)
- poweroff (cli)
- reboot (cli)
- resolvconf (cli)
- resolvectl (cli)
- run0 (cli)
- shutdown (cli)
- storagectl (cli)
- systemctl (cli)
- systemd-ac-power (cli)
- systemd-analyze (cli)
- systemd-ask-password (cli)
- systemd-cat (cli)
- systemd-cgls (cli)
- systemd-cgtop (cli)
- systemd-confext (cli)
- systemd-creds (cli)
- systemd-delta (cli)
- systemd-detect-virt (cli)
- systemd-dissect (cli)
- systemd-escape (cli)
- systemd-firstboot (cli)
- systemd-id128 (cli)
- systemd-inhibit (cli)
- systemd-machine-id-setup (cli)
- systemd-mount (cli)
- systemd-mstack (cli)
- systemd-mute-console (cli)
- systemd-notify (cli)
- systemd-nspawn (cli)
- systemd-path (cli)
- systemd-pty-forward (cli)
- systemd-repart (cli)
- systemd-resolve (cli)
- systemd-run (cli)
- systemd-socket-activate (cli)
- systemd-stdio-bridge (cli)
- systemd-sysext (cli)
- systemd-sysinstall (cli)
- systemd-sysusers (cli)
- systemd-tmpfiles (cli)
- systemd-tty-ask-password-agent (cli)
- systemd-umount (cli)
- systemd-vpick (cli)
- timedatectl (cli)
- udevadm (cli)
- ukify (cli)
- userdbctl (cli)
- varlinkctl (cli)
- bootctl (别名)
- busctl (别名)
- coredumpctl (别名)
- halt (别名)
- hostnamectl (别名)
- init (别名)
- journalctl (别名)
- kernel-install (别名)
- localectl (别名)
- loginctl (别名)
- machinectl (别名)
- mount.ddi (别名)
- mount.mstack (别名)
- mount.storage (别名)
- networkctl (别名)
- oomctl (别名)
- portablectl (别名)
- poweroff (别名)
- reboot (别名)
- resolvconf (别名)
- resolvectl (别名)
- run0 (别名)
- shutdown (别名)
- storagectl (别名)
- systemctl (别名)
- systemd-ac-power (别名)
- systemd-analyze (别名)
- systemd-ask-password (别名)
- systemd-cat (别名)
- systemd-cgls (别名)
- systemd-cgtop (别名)
- systemd-confext (别名)
- systemd-creds (别名)
- systemd-delta (别名)
- systemd-detect-virt (别名)
- systemd-dissect (别名)
- systemd-escape (别名)
- systemd-firstboot (别名)
- systemd-id128 (别名)
- systemd-inhibit (别名)
- systemd-machine-id-setup (别名)
- systemd-mount (别名)
- systemd-mstack (别名)
- systemd-mute-console (别名)
- systemd-notify (别名)
- systemd-nspawn (别名)
- systemd-path (别名)
- systemd-pty-forward (别名)
- systemd-repart (别名)
- systemd-resolve (别名)
- systemd-run (别名)
- systemd-socket-activate (别名)
- systemd-stdio-bridge (别名)
- systemd-sysext (别名)
- systemd-sysinstall (别名)
- systemd-sysusers (别名)
- systemd-tmpfiles (别名)
- systemd-tty-ask-password-agent (别名)
- systemd-umount (别名)
- systemd-vpick (别名)
- timedatectl (别名)
- udevadm (别名)
- ukify (别名)
- userdbctl (别名)
- varlinkctl (别名)

## 依赖

- glib
- libcap
- libxcrypt
- lz4
- openssl@3
- util-linux
- xz
- zstd

## 构建依赖

- coreutils
- docbook-xsl
- gettext
- gperf
- icu4c@78
- libxml2
- libxslt
- meson
- ninja
- pkgconf
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 261.2
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/systemd/systemd
- 检测到的最新版本: v261.2 (当前)
## 项目历史与用法

systemd is the Linux system and service manager around which many modern distribution boot, service, logging, login, network, timer, and unit-management workflows are organized.

### 项目历史

The official repository describes systemd as the System and Service Manager and points to systemd.io and the freedesktop.org manual set for documentation. Its v1 tag is dated 2010-07-07 and was tagged by Lennart Poettering.

The project expanded well beyond an init replacement. The Homebrew source facts list commands such as systemctl, journalctl, loginctl, timedatectl, systemd-analyze, systemd-run, systemd-nspawn, networkctl, resolvectl, and many service-management helpers.

### 采用历史

systemd.io links distribution-specific package and bug-tracker resources for Arch, Debian, Fedora, Gentoo, Mageia, Ubuntu, and openSUSE, reflecting how distribution integration is part of the project surface.

The supplied package-manager facts list systemd-related packages across Homebrew, Alpine, Debian, Ubuntu, Fedora/dnf, Nix, Arch, and openSUSE, though individual distributions may split libraries, NSS modules, busctl, or the full service manager into different package names.

### 使用方式

Most users encounter systemd through systemctl for units, journalctl for logs, systemd-analyze for boot analysis, timers as cron-like scheduled jobs, and service unit files installed by other packages.

For CLI culture, systemd changed what it means to package a daemon on Linux: a package often ships unit files, tmpfiles rules, sysusers rules, presets, socket units, timer units, and journal integration rather than only an init script.

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

systemd is package-manager significant because it defines a large amount of Linux service packaging convention. Packagers care about unit ordering, service hardening, socket activation, tmpfiles, user creation, journal behavior, and distro policy.

It also remains culturally important because it turned service management into a shared Linux platform API, so installing even unrelated packages often means installing or interacting with systemd units.

### 时间线

- 2010: systemd v1 tag dated 2010-07-07.
- 2011-2014: systemd.io lists early user and administrator presentations at FOSDEM and linux.conf.au.
- 2026: The official GitHub repository lists v261.1 as a current stable release on 2026-06-26.

### Related projects

- systemd.io documents related APIs and bindings around the journal, sd-bus, socket activation, and systemd D-Bus interfaces, showing its role as both a service manager and a platform for other packages.

### 来源

- <https://api.github.com/repos/systemd/systemd/git/tags/21466a73743cfbdef66d79248ab2944b91d94ac8>
- <https://github.com/systemd/systemd>
- <https://systemd.io/>
- source_facts.executables
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool 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

- Linux: /etc/systemd/system.conf, /etc/systemd/system.conf.d/*.conf, ~/.config/systemd/user.conf, /etc/systemd/user.conf, /etc/systemd/user.conf.d/*.conf
## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - libnss-myhostname - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libnss-myhostname from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nss module providing fallback resolution for the current hostname | https://systemd.io
- Debian apt - libnss-mymachines - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libnss-mymachines from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nss module to resolve hostnames for local container instances | https://systemd.io
- Debian apt - libnss-resolve - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libnss-resolve from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nss module to resolve names via systemd-resolved | https://systemd.io
- Debian apt - libnss-systemd - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libnss-systemd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nss module providing dynamic user and group name resolution | https://systemd.io
- Debian apt - libpam-systemd - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libpam-systemd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | system and service manager - PAM module | https://systemd.io
- Debian apt - libsystemd-dev - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libsystemd-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | systemd utility library - development files | https://systemd.io
- Debian apt - libsystemd-shared - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libsystemd-shared from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | systemd shared private library | https://systemd.io
- Debian apt - libsystemd0 - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libsystemd0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | systemd utility library | https://systemd.io
- Debian apt - libudev-dev - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libudev-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libudev development files | https://systemd.io
- Debian apt - libudev1 - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: libudev1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libudev shared library | https://systemd.io
- Debian apt - systemd - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: systemd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | system and service manager | https://systemd.io
- Debian apt - systemd-boot - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: systemd-boot from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple UEFI boot manager - integration and services | https://systemd.io
- Debian apt - systemd-boot-efi - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: systemd-boot-efi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple UEFI boot manager - EFI binaries | https://systemd.io
- Debian apt - systemd-boot-efi-amd64-signed-template - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: systemd-boot-efi-amd64-signed-template from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Template for signed systemd-boot-efi package (amd64) | https://systemd.io
- Debian apt - systemd-boot-tools - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: systemd-boot-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple UEFI boot manager - tools | https://systemd.io
- Debian apt - systemd-container - 257.13-1~deb13u1: normalized package name match | Debian stable package indexes: systemd-container from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | systemd container/nspawn tools | https://systemd.io


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Runtime dependency declared by Homebrew.
- [libcap](https://pkg.so/zh-hans/brew/libcap/) - Runtime dependency declared by Homebrew.
- [util-linux](https://pkg.so/zh-hans/brew/util-linux/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Build dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [crun](https://pkg.so/zh-hans/brew/crun/) - Popular package that depends on this formula.
- [conmon](https://pkg.so/zh-hans/brew/conmon/) - Popular package that depends on this formula.
- [avahi](https://pkg.so/zh-hans/brew/avahi/) - Popular package that depends on this formula.
- [pipewire](https://pkg.so/zh-hans/brew/pipewire/) - Popular package that depends on this formula.
- [bluez](https://pkg.so/zh-hans/brew/bluez/) - Popular package that depends on this formula.
- [webkitgtk](https://pkg.so/zh-hans/brew/webkitgtk/) - Popular package that depends on this formula.
- [onedrive-cli](https://pkg.so/zh-hans/brew/onedrive-cli/) - Popular package that depends on this formula.
- [sysprof](https://pkg.so/zh-hans/brew/sysprof/) - Popular package that depends on this formula.
- [shepherd](https://pkg.so/zh-hans/brew/shepherd/) - Shares pkgdb curated category or tags: cli, init, service-manager, system, system-services.
- [s6-rc](https://pkg.so/zh-hans/brew/s6-rc/) - Shares pkgdb curated category or tags: cli, init, service-manager, system.
- [keyutils](https://pkg.so/zh-hans/brew/keyutils/) - Shares pkgdb curated category or tags: cli, linux, system.
- [podman](https://pkg.so/zh-hans/brew/podman/) - Shares pkgdb curated category or tags: cli, linux, system.
- [glibc](https://pkg.so/zh-hans/brew/glibc/) - Shares pkgdb curated category or tags: cli, linux, system.

## Combined YAML source

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


## 来源

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