# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper 安装 imake

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

## 安装

```sh
sudo av install brew:imake
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imake
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install imake
```

  证据: MacPorts ports tree: x11/imake/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add imake
```

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

- dnf (92%):

```sh
sudo dnf install imake
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#imake
```

  证据: nixpkgs package indexes: pkgs/by-name/im/imake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S imake
```

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

- zypper (92%):

```sh
sudo zypper install imake
```

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

## 软件包事实

- **软件包键:** brew:imake
- **软件包管理器:** Homebrew
- **版本:** 1.0.11
- **来源摘要:** Build automation system written for X11
- **主页:** <https://xorg.freedesktop.org>
- **最后更新:** 2026-06-22T14:03:46-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ccmakedep (别名)
- cleanlinks (别名)
- imake (别名)
- makeg (别名)
- mergelib (别名)
- mkdirhier (别名)
- mkhtmlindex (别名)
- revpath (别名)
- xmkmf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.11
## 项目历史与用法

imake is the historic X Window System makefile-generation tool built around C preprocessor templates. It is no longer the preferred X.Org build system, but it remains packaged so older X11-era software can still be built.

### 项目历史

The X Window System used imake extensively through X11R6.9 for both builds inside the X source tree and external software. X.Org's release notes describe the X11R7.x shift to modular source releases, and the imake README states that X moved to GNU autoconf and automake for X11R7.0 and later releases in 2005.

As a standalone X.Org utility package, imake includes helper programs such as `ccmakedep`, `mergelib`, `revpath`, `mkdirhier`, `makeg`, `cleanlinks`, `mkhtmlindex`, and `xmkmf`. Its README also notes that most real usage needs the X.Org `util/cf` files, which provide platform-specific configuration data.

### 采用历史

imake's adoption story is almost inverted: it was once central to building X and X applications, then became legacy infrastructure after X.Org modularization and the move to Autotools. Package managers continue to carry it because old external X11 software and vendor source packages can still depend on Imakefiles and `xmkmf`.

X.Org maintainers explicitly advise projects still using imake to migrate to build systems that add support for new platforms and runtimes. The 2025 imake 1.0.11 announcement still added RISC-V and LoongArch Linux support, illustrating the maintenance pressure created by old build recipes on newer architectures.

### 使用方式

imake preprocesses Imakefiles into makefiles using X.Org configuration templates, with `xmkmf` commonly used by external packages to generate build files. The support tools cover dependency generation, directory creation, library merging, path calculation, and HTML index generation.

The practical package-manager use is compatibility: install imake and the X.Org configuration files when a legacy X11 source package asks for Imakefile processing rather than `configure`, Meson, or CMake.

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

imake is package-nerd archaeology with real build consequences. It explains why some ports collections and formulas still preserve X11 support utilities long after the main upstream ecosystem moved through Autotools and toward Meson.

### 时间线

- 1988: X11 version 11 was first released, forming the protocol era in which imake became important.
- 2005: X11R7.0 moved X.Org builds to GNU autoconf and automake.
- 2012: X11R7.7 was described as the eighth modular X Window System release.
- 2025: imake 1.0.11 added Linux RISC-V and LoongArch support plus Meson build support.
- 2026: Homebrew packages imake 1.0.11 for legacy X11 build compatibility.

### Related projects

- imake is closely tied to X.Org `util/cf`, `xmkmf`, Autotools-era X.Org modular builds, and newer Meson migration work. Its historical peers are the broader X11 utility and build-support packages distributed from X.Org's individual module archives.

### 来源

- <https://formulae.brew.sh/api/formula/imake.json>
- <https://gitlab.freedesktop.org/xorg/util/imake>
- <https://gitlab.freedesktop.org/xorg/util/imake/-/raw/master/README.md>
- <https://lists.x.org/archives/xorg-announce/2025-December/003650.html>
- <https://www.x.org/archive/X11R7.7/doc/xorg-docs/ReleaseNotes.txt>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - imake: normalized package name match | nixpkgs package indexes: pkgs/by-name/im/imake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - imake - 1.0.11-r0: normalized package name match | Alpine Linux edge package indexes: imake from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | X Windows make utility | https://www.x.org
- apk - imake-doc - 1.0.11-r0: normalized package name match | Alpine Linux edge package indexes: imake-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | X Windows make utility (documentation) | https://www.x.org
- dnf - imake - 1.0.10-9.fc45: normalized package name match | Fedora Rawhide package metadata: imake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | imake source code configuration and build system | http://www.x.org
- pacman - imake - 1.0.11-1: normalized package name match | Arch Linux sync databases: imake from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | X.Org imake program and related utilities | https://xorg.freedesktop.org/
- zypper - imake - 1.0.11-1.5: normalized package name match | openSUSE Tumbleweed package metadata: imake from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C preprocessor interface to the make utility | https://xorg.freedesktop.org/
- MacPorts - imake: normalized package name match | MacPorts ports tree: x11/imake/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
