# 使用 Homebrew, MacPorts, Nix 安装 dura

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

## 安装

```sh
sudo av install brew:dura
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dura
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dura
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dura
```

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

## 软件包事实

- **软件包键:** brew:dura
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dura>
- **版本:** 0.2.0
- **来源摘要:** Backs up your work automatically via Git commits
- **主页:** <https://github.com/tkellogg/dura>
- **仓库:** <https://github.com/tkellogg/dura>
- **上游文档:** <https://github.com/tkellogg/dura#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/tkellogg/dura/archive/refs/tags/v0.2.0.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- dura (cli)
- dura (别名)

## 依赖

- openssl@3

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.2.0
- 本地数据: OK
- 上游仓库: https://github.com/tkellogg/dura
- 检测到的最新版本: v0.2.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Dura is a Rust developer tool that watches Git repositories and makes background snapshot commits without moving HEAD, changing the current branch, or touching the index. It belongs to the small family of tools that treat Git as a local safety net rather than only as a collaboration system.

### 项目历史

The GitHub repository was created at the end of 2021, and the README says people had been using it since January 1, 2022. The project reached crates.io in January 2022 as `dura`, described there as backing up work automatically via Git commits.

Dura's design centers on per-commit `dura/` branches. It snapshots dirty working trees in the background so a developer can recover from editor mistakes, crashes, or bad resets by checking Git history rather than relying on per-file undo.

### 采用历史

The official README documents installation through Cargo, Homebrew on macOS, Arch via `dura-git`, and Nix/NixOS. That spread is typical of a developer utility that is useful to package-manager-heavy users even when it is not a language runtime or framework dependency.

By June 2026, the GitHub API reported several thousand stars, while crates.io remained a smaller distribution channel. That pattern fits a tool discovered and evaluated mostly as a workflow idea, with package managers used once a developer decides to keep it running.

### 使用方式

Typical use is `dura serve` in the background, then `dura watch` inside each Git repository to snapshot. Recovery is performed through normal Git inspection and checkout/reset operations against the generated `dura/<commit>` branches.

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

Dura is interesting to package nerds because it packages a personal disaster-recovery habit as a daemonized CLI: automatic local commits without changing the developer's visible branch state. It also sits near tools like `git stash`, editor local history, and filesystem backup, but uses Git's object model as the storage layer.

### 时间线

- 2021-12-31: GitHub repository created.
- 2022-01-01: README says many users had been using it from this date onward.
- 2022-01-23: `dura` crate created on crates.io.
- 2022-06-18: 0.2.0-rc1 release published on GitHub.

### Related projects

- Dura's own recovery instructions compare the workflow to `git stash` and normal Git commands, and the project uses libgit2 for writing commits. In practice it overlaps with editor local-history features and continuous backup tools, but remains Git-native.

### 来源

- <https://github.com/tkellogg/dura>
- <https://api.github.com/repos/tkellogg/dura>
- <https://crates.io/crates/dura>
- <https://api.github.com/repos/tkellogg/dura/releases>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dura
- **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

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

- Nix - dura: normalized package name match | nixpkgs package indexes: pkgs/by-name/du/dura/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - dura: normalized package name match | MacPorts ports tree: devel/dura/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [braid](https://www.automicvault.com/zh-hans/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://www.automicvault.com/zh-hans/pkg/brew/codeberg-cli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [gcli](https://www.automicvault.com/zh-hans/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-branchless](https://www.automicvault.com/zh-hans/pkg/brew/git-branchless/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cinnabar](https://www.automicvault.com/zh-hans/pkg/brew/git-cinnabar/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cola](https://www.automicvault.com/zh-hans/pkg/brew/git-cola/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-gui](https://www.automicvault.com/zh-hans/pkg/brew/git-gui/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-lfs](https://www.automicvault.com/zh-hans/pkg/brew/git-lfs/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-series](https://www.automicvault.com/zh-hans/pkg/brew/git-series/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-workspace](https://www.automicvault.com/zh-hans/pkg/brew/git-workspace/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [gitnr](https://www.automicvault.com/zh-hans/pkg/brew/gitnr/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
