# xinit を Homebrew, apk, apt, MacPorts, Nix, zypper, dnf でインストール

xinit のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:xinit
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install xinit
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xinit
```

  証拠: MacPorts ports tree: x11/xinit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add xinit
```

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

- Debian apt (92%):

```sh
sudo apt install xinit
```

  証拠: Debian stable package indexes: xinit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#xinit
```

  証拠: nixpkgs package indexes: pkgs/by-name/xi/xinit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install xinit
```

  証拠: openSUSE Tumbleweed package metadata: xinit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

```sh
sudo dnf install xorg-x11-xinit
```

  証拠: Fedora Rawhide package metadata: xorg-x11-xinit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:xinit
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/xinit>
- **バージョン:** 1.4.4
- **ソース概要:** Start the X Window System server
- **ホームページ:** <https://gitlab.freedesktop.org/xorg/app/xinit>
- **上流ドキュメント:** <https://gitlab.freedesktop.org/xorg/app/xinit>
- **ライセンス:** MIT AND APSL-2.0
- **ソースアーカイブ:** <https://www.x.org/releases/individual/app/xinit-1.4.4.tar.xz>
- **最終更新:** 2026-07-13T10:44:14Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- startx (cli)
- xinit (cli)
- startx (エイリアス)
- xinit (エイリアス)

## 依存関係

- libx11
- lndir
- mkfontscale
- quartz-wm
- xauth
- xmodmap
- xrdb
- xterm

## ビルド依存関係

- pkgconf
- tradcpp

## インストール挙動

- post-install フック: 未定義
- サービス: declared
- 注意点: To start privileged xinit now and restart at login: sudo brew services start xinit --file=$HOMEBREW_PREFIX/opt/xinit/homebrew.mxcl.privileged_startx.plist
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.4.4
- マネージャ更新日: 2026-07-13
- ローカルデータ: OK
- 上流リポジトリ: https://gitlab.freedesktop.org/xorg/app/xinit
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

xinit is the small X.Org session bootstrapper that starts an X server and an initial client program. Its companion script `startx` wraps xinit for the common case of manually starting a single X session from a text login instead of using a display manager.

### プロジェクトの歴史

xinit belongs to the old X client/server world where starting a graphical session meant launching the server and one controlling client. The X.Org manual defines it as the X Window System initializer for systems not using a display manager such as xdm, or for environments that use multiple window systems. When the first client exits, xinit kills the X server and terminates.

The tool's behavior has remained intentionally simple: if no client is given it looks for `~/.xinitrc`, otherwise it falls back to a default xterm; if no server is given it looks for `~/.xserverrc`, otherwise it runs `X :0`. `startx` adds a friendlier shell-script layer, choosing `.xinitrc` and `.xserverrc` files and passing server options after `--`.

### 採用の歴史

xinit was historically central for users who logged into a console and then started X manually. Display managers such as xdm, gdm, and kdm became the common desktop login path, but xinit/startx remained the minimal, packageable fallback for custom window-manager setups, recovery environments, lightweight desktops, and multi-server experiments.

The Linux Documentation Project's X Window User HOWTO captures the traditional split: X sessions are usually started either by a display manager at graphical login or manually from a text console with startx, which is a wrapper around xinit. That is the adoption pattern that kept xinit packaged even after full desktop environments hid it from most users.

### 使われ方

Users normally run `startx`, customize `~/.xinitrc` to start clients and leave the final long-lived program, usually a window manager or session manager, in the foreground, and optionally customize `~/.xserverrc` for server startup. Direct `xinit` usage is for explicit client/server combinations, alternate displays, Xvnc-style servers, or low-level troubleshooting.

The package is small but important because it owns the conventional files and shell behavior around manual X startup. Without it, a minimal X.Org install may have an X server and window manager but no standard way for a non-display-manager login to tie them together.

### パッケージ好きにとっての重要性

xinit is a perfect package-nerd system utility: tiny, old, boring, and still the glue for a whole class of X11 sessions. It encodes decades of Unix desktop convention in a couple of executable entry points and dotfiles.

Its significance is also diagnostic. When an X session fails before the desktop stack is running, xinit/startx gives maintainers and users a narrow, inspectable path through server arguments, client startup, environment variables, and foreground process lifetime.

### タイムライン

- X11 era: xinit becomes the manual initializer pattern for starting an X server and first client outside a display manager.
- X11R6/X11R7 documentation era: `startx` is documented as a front end to xinit for a single X Window System session.
- 2018-07-29: the xorg/app/xinit project appears in freedesktop.org GitLab metadata, reflecting the modern X.Org hosting location.
- 2026: freedesktop.org GitLab metadata still shows activity on the xinit project.

### Related projects

- startx is the user-facing wrapper script shipped with xinit.
- Xorg or another X server is the server process xinit starts.
- xdm, gdm, and kdm are display-manager alternatives that start X sessions without the user manually invoking xinit.
- twm, xterm, and lightweight window managers are classic clients used in `.xinitrc` examples and fallback sessions.

### ソース

- <https://gitlab.freedesktop.org/api/v4/projects/xorg%2Fapp%2Fxinit>
- <https://gitlab.freedesktop.org/xorg/app/xinit>
- <https://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html>
- <https://xorg.freedesktop.org/archive/X11R6.7.0/doc/startx.1.html>
- <https://xorg.freedesktop.org/archive/X11R7.5/doc/man/man1/xinit.1.html>


## セキュリティノート

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

- **Geiger リスク:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## 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: $(HOME)/.xinitrc, $(HOME)/.xserverrc, /usr/lib/X11/xinit/xinitrc, /usr/lib/X11/xinit/xserverrc
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Debian apt - xinit - 1.4.2-1: normalized package name match | Debian stable package indexes: xinit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X server initialisation tool
- Nix - xinit: normalized package name match | nixpkgs package indexes: pkgs/by-name/xi/xinit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - xinit - 1.4.1-0ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: xinit from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | X server initialisation tool
- apk - xinit - 1.4.4-r0: normalized package name match | Alpine Linux edge package indexes: xinit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | X.Org initialisation program | https://xorg.freedesktop.org/
- apk - xinit-doc - 1.4.4-r0: normalized package name match | Alpine Linux edge package indexes: xinit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | X.Org initialisation program (documentation) | https://xorg.freedesktop.org/
- dnf - xorg-x11-xinit - 1.4.3-5.fc45: normalized package name match | Fedora Rawhide package metadata: xorg-x11-xinit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | X.Org X11 X Window System xinit startup scripts | https://www.x.org
- zypper - xinit - 1.4.4-1.5: normalized package name match | openSUSE Tumbleweed package metadata: xinit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | X Window System initializer | https://xorg.freedesktop.org/
- MacPorts - xinit: normalized package name match | MacPorts ports tree: x11/xinit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [xauth](https://pkg.so/ja/brew/xauth/) - Runtime dependency declared by Homebrew.
- [xterm](https://pkg.so/ja/brew/xterm/) - Runtime dependency declared by Homebrew.
- [xrdb](https://pkg.so/ja/brew/xrdb/) - Runtime dependency declared by Homebrew.
- [xmodmap](https://pkg.so/ja/brew/xmodmap/) - Runtime dependency declared by Homebrew.
- [quartz-wm](https://pkg.so/ja/brew/quartz-wm/) - Runtime dependency declared by Homebrew.
- [lndir](https://pkg.so/ja/brew/lndir/) - Runtime dependency declared by Homebrew.
- [mkfontscale](https://pkg.so/ja/brew/mkfontscale/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [tradcpp](https://pkg.so/ja/brew/tradcpp/) - Build dependency declared by Homebrew.
- [xorg-server](https://pkg.so/ja/brew/xorg-server/) - Shares pkgdb curated category or tags: cli, display-server, system, x11, xorg.
- [xdpyinfo](https://pkg.so/ja/brew/xdpyinfo/) - Shares pkgdb curated category or tags: cli, display-server, system, x11, xorg.
- [xinput](https://pkg.so/ja/brew/xinput/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xkbcomp](https://pkg.so/ja/brew/xkbcomp/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [libxcvt](https://pkg.so/ja/brew/libxcvt/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [libxpm](https://pkg.so/ja/brew/libxpm/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xeyes](https://pkg.so/ja/brew/xeyes/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xwininfo](https://pkg.so/ja/brew/xwininfo/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, libx11, server, system, window.
- [twm](https://pkg.so/ja/brew/twm/) - Local package facts share a topical domain. Shared terms: cli, libx11, system, window, x11.

## Combined YAML source

View the package source record on GitHub. [combined/xinit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xinit.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
