# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 deja-gnu

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

## 安装

```sh
sudo av install brew:deja-gnu
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install deja-gnu
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dejagnu
```

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

### Linux

- apk (92%):

```sh
sudo apk add dejagnu
```

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

- Debian apt (92%):

```sh
sudo apt install dejagnu
```

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

- dnf (92%):

```sh
sudo dnf install dejagnu
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dejagnu
```

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

- pacman (92%):

```sh
sudo pacman -S dejagnu
```

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

- zypper (92%):

```sh
sudo zypper install dejagnu
```

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

## 软件包事实

- **软件包键:** brew:deja-gnu
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/deja-gnu>
- **版本:** 1.6.3
- **来源摘要:** Framework for testing other programs
- **主页:** <https://www.gnu.org/software/dejagnu/>
- **仓库:** <https://git.savannah.gnu.org/git/dejagnu.git>
- **上游文档:** <https://www.gnu.org/software/dejagnu>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/dejagnu/dejagnu-1.6.3.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- dejagnu (cli)
- runtest (cli)
- dejagnu (别名)
- runtest (别名)

## macOS 提供的库

- expect

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.6.3
- 本地数据: OK
- 上游仓库: https://www.gnu.org/software/dejagnu/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

DejaGnu is GNU's test framework for exercising command-line programs through Expect and Tcl. It is best known in toolchain circles because it lets a single testsuite drive local, remote, embedded, and simulator targets with the same runtest interface.

### 项目历史

DejaGnu became a GNU package to solve a very GNU problem: testing compilers, debuggers, binutils, and other portable development tools across many hosts and targets. Its Savannah project page identifies the official GNU project and source repository, while the GNU manual documents the runtest harness, board files, site configuration, and per-user startup file used by the framework.

The GNU FTP archive shows DejaGnu releases dating back to the 1.3 series in 1996, followed by long-lived 1.4, 1.5, and 1.6 release lines. That release pattern mirrors its role as infrastructure: the tool changes slowly, but it remains important wherever old and new toolchains need repeatable test results.

### 采用历史

DejaGnu's adoption is tied to the GNU toolchain rather than to application development fashion. Projects that need to run the same tests against native binaries, cross targets, simulators, or remote boards use DejaGnu because its abstraction is old, boring, and understood by compiler and embedded developers.

The package is widely shipped by Unix-like package managers because it is a build and test dependency for other low-level software. Homebrew packages it as deja-gnu, while GNU distributes canonical source tarballs through ftp.gnu.org.

### 使用方式

Users normally invoke the runtest command from a package testsuite. Site-wide and user-specific configuration can tune board definitions, tool paths, and target behavior through site.exp and ~/.dejagnurc.

DejaGnu matters most when tests must be portable across machines rather than just run locally. The same test description can talk to a native program, a remote target, or a simulator through Expect-driven interactions.

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

For package maintainers, DejaGnu is one of the classic pieces of GNU release machinery: not glamorous, but deeply embedded in the way compilers and binary tools prove they still work.

Its presence in dependency graphs often signals that a formula or distribution package is running upstream's real tests instead of a smoke test. That makes it an important clue when auditing build quality for toolchain packages.

### 时间线

- 1996: DejaGnu 1.3 appears in the GNU FTP archive.
- 2001: The 1.4 release line is distributed through GNU FTP.
- 2011: DejaGnu 1.5 is released after a long 1.4 maintenance period.
- 2016: DejaGnu 1.6 is released.
- 2021: DejaGnu 1.6.3 is published in the GNU FTP archive.

### Related projects

- Expect and Tcl provide the interaction layer DejaGnu uses to drive programs under test.
- GCC, GDB, and Binutils are representative GNU toolchain projects whose testing culture overlaps with DejaGnu.
- Autotest and Automake are adjacent GNU testing and build tools, but DejaGnu specializes in target-oriented test execution.

### 来源

- <https://savannah.gnu.org/projects/dejagnu>
- <https://git.savannah.gnu.org/cgit/dejagnu.git>
- <https://ftp.gnu.org/gnu/dejagnu/>
- <https://www.gnu.org/software/dejagnu/manual>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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: ~/.dejagnurc, site.exp
## 源数据库详情

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

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

- MacPorts - dejagnu: installed executable or alias match | MacPorts ports tree: devel/dejagnu/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - dejagnu - 1.6.3-1.1: installed executable or alias match | Debian stable package indexes: dejagnu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | framework for running test suites on software tools
- Nix - dejagnu: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/de/dejagnu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dejagnu - 1.6.3-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: dejagnu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | framework for running test suites on software tools
- apk - dejagnu - 1.6.3-r1: installed executable or alias match | Alpine Linux edge package indexes: dejagnu from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A framework for testing other programs | https://www.gnu.org/software/dejagnu/
- apk - dejagnu-dev - 1.6.3-r1: installed executable or alias match | Alpine Linux edge package indexes: dejagnu-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A framework for testing other programs (development files) | https://www.gnu.org/software/dejagnu/
- apk - dejagnu-doc - 1.6.3-r1: installed executable or alias match | Alpine Linux edge package indexes: dejagnu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A framework for testing other programs (documentation) | https://www.gnu.org/software/dejagnu/
- dnf - dejagnu - 1.6.3-18.fc45: installed executable or alias match | Fedora Rawhide package metadata: dejagnu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A front end for testing other programs | http://www.gnu.org/software/dejagnu/
- pacman - dejagnu - 1.6.3-17: installed executable or alias match | Arch Linux sync databases: dejagnu from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Framework for testing other programs | https://www.gnu.org/software/dejagnu/
- zypper - dejagnu - 1.6.3-2.4: installed executable or alias match | openSUSE Tumbleweed package metadata: dejagnu from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Framework for Running Test Suites on Software Tools | https://www.gnu.org/software/dejagnu/


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [kyua](https://www.automicvault.com/zh-hans/pkg/brew/kyua/) - Shares av.db curated category or tags: cli, developer-tools, test-framework, testing.
- [phpunit](https://www.automicvault.com/zh-hans/pkg/brew/phpunit/) - Shares av.db curated category or tags: cli, developer-tools, test-framework, testing.
- [allure](https://www.automicvault.com/zh-hans/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [atf](https://www.automicvault.com/zh-hans/pkg/brew/atf/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bash_unit](https://www.automicvault.com/zh-hans/pkg/brew/bash-unit/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bashunit](https://www.automicvault.com/zh-hans/pkg/brew/bashunit/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bats-core](https://www.automicvault.com/zh-hans/pkg/brew/bats-core/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [beakerlib](https://www.automicvault.com/zh-hans/pkg/brew/beakerlib/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu.
- [bison](https://www.automicvault.com/zh-hans/pkg/brew/bison/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu.

## Combined YAML source

View the package source record on GitHub. [combined/deja-gnu.yml](https://github.com/automic-vault/db/blob/main/combined/deja-gnu.yml)


## 来源

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