# 使用 Homebrew, apk, pacman 安装 atuin-server

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

## 安装

```sh
sudo av install brew:atuin-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install atuin-server
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add atuin-server
```

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

- pacman (92%):

```sh
sudo pacman -S atuin-server
```

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

## 软件包事实

- **软件包键:** brew:atuin-server
- **软件包管理器:** Homebrew
- **版本:** 18.18.1
- **来源摘要:** Sync server for atuin - Improved shell history for zsh, bash, fish and nushell
- **主页:** <https://atuin.sh>
- **仓库:** <https://github.com/atuinsh/atuin>
- **最后更新:** 2026-07-28T05:19:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- atuin-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

atuin-server is the self-hosted sync companion for Atuin, the shell-history tool that stores command history in SQLite locally and can synchronize encrypted history between machines. The server package matters to package users because it splits Atuin's privacy-preserving sync backend into a deployable binary that can be installed, containerized, and upgraded separately from the interactive shell-history CLI.

### 项目历史

The Atuin repository was created in October 2020 and describes the project as replacing traditional shell history with a SQLite database plus extra command context. Its README presents sync as optional and fully encrypted, with users able to rely on the hosted service, self-host, or run entirely without sync.

The server moved from being started through the main `atuin` binary to a separate `atuin-server` binary before v18.12.0. The current self-hosting guide documents that upgrade boundary and states that every release publishes prebuilt `atuin-server` binaries and installer scripts.

### 采用历史

Atuin's README advertises support for zsh, bash, fish, nushell, xonsh, and PowerShell, which put the client in the daily path of shell users rather than only in a backend role. The same repository publishes release assets for both `atuin` and `atuin-server` across Linux, macOS, Windows, and musl targets, giving package managers a clear split between the interactive CLI and the deployable sync service.

The Homebrew package metadata in this batch shows `atuin-server` packaged separately from `atuin`, while the same source facts list Alpine, Homebrew, and Arch packages. That separate formula tracks the upstream split: users who only need the local shell-history UI install `atuin`, while operators who want private sync install `atuin-server`.

### 使用方式

A self-hosted server can be started with `atuin-server start` and configured through `~/.config/atuin/server.toml` or environment variables. The documented server configuration includes listen host, port, open-registration behavior, and `db_uri`, with PostgreSQL 14+ and SQLite 3+ documented as supported storage backends.

The server is used by configuring clients with a `sync_address`, then registering, logging in, and running `atuin sync`. The sync guide emphasizes that the history is end-to-end encrypted before it reaches the server, so the server package is infrastructure for storage and synchronization rather than a plaintext command-history database.

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

For package maintainers, `atuin-server` is a neat example of a Rust project that outgrew a single CLI binary and exposed a second artifact with different runtime expectations: service management, database configuration, network binding, reverse-proxy TLS, and persistent storage. That makes it a distinct package even though it shares the upstream repository and release train with Atuin.

The package also shows why formula splits matter. Installing the server on a workstation is unnecessary for most Atuin users, while bundling it into only the main CLI would make self-hosting less obvious for operators. Separate packaging lets Homebrew, Alpine, and Arch users install just the role they need.

### 时间线

- 2020: The Atuin repository was created on GitHub.
- 2021: Early GitHub releases in the 0.6 series were published.
- 2022: Atuin moved through v0.10 and then jumped to v11.
- 2024: The 18.x release line began.
- 2026: v18.16.x releases shipped separate `atuin` and `atuin-server` artifacts.

### Related projects

- Atuin client: the interactive shell-history CLI that records, searches, imports, and syncs history.
- PostgreSQL and SQLite: supported backing stores for self-hosted sync servers.
- Shell history systems in zsh, bash, fish, nushell, xonsh, and PowerShell: the native history layers Atuin augments or replaces.

### 来源

- <https://api.github.com/repos/atuinsh/atuin>
- <https://api.github.com/repos/atuinsh/atuin/releases>
- <https://docs.atuin.sh/cli/guide/sync/>
- <https://docs.atuin.sh/cli/self-hosting/server-setup/>
- <https://github.com/atuinsh/atuin#readme>


## 安全说明

formula declares a Homebrew service. generalized runtime or code generation signal.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service
- generalized runtime or code generation 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

- Unix: ~/.config/atuin/server.toml
## 其他软件包管理器记录

- apk - atuin-server - 18.6.1-r0: normalized package name match | Alpine Linux edge package indexes: atuin-server from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Magical shell history - sync server | https://github.com/atuinsh/atuin
- pacman - atuin-server - 18.18.1-1: normalized package name match | Arch Linux sync databases: atuin-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Magical shell history - sync server | https://github.com/atuinsh/atuin


## Combined YAML source

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


## 来源

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