# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, scoop 安装 himalaya

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

## 安装

```sh
sudo av install brew:himalaya
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install himalaya
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install himalaya
```

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

### Linux

- apk (92%):

```sh
sudo apk add himalaya
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#himalaya
```

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

- pacman (92%):

```sh
sudo pacman -S himalaya
```

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

- zypper (92%):

```sh
sudo zypper install himalaya
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/himalaya
```

  证据: Scoop official bucket manifest trees: bucket/himalaya.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:himalaya
- **软件包管理器:** Homebrew
- **版本:** 2.0.0
- **来源摘要:** CLI email client written in Rust
- **主页:** <https://pimalaya.org>
- **仓库:** <https://github.com/pimalaya/himalaya>
- **最后更新:** 2026-07-26T04:16:27Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- himalaya (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Himalaya is a Rust command-line email client from the Pimalaya family of personal information management tools. Its package-manager identity is a terminal-native mail workflow: install one binary, configure accounts in TOML, and script mailbox, envelope, message, attachment, IMAP, SMTP, JMAP, Gmail, Microsoft Graph, Maildir, and m2dir operations from the shell.

The project fits a long Unix tradition of separating mail transport, storage, composition, and viewing into composable tools. Himalaya's particular contribution is to make modern email protocols and JSON output feel natural in a CLI package, while sharing configuration and libraries with other Pimalaya interfaces.

### 项目历史

The public repository begins on 2020-12-24 with commits that initialized the project and its TOML configuration parser. Within the first days of development, the repository added IMAP connection handling, email listing, command-line parsing, mailbox listing, text and HTML previews, SMTP setup, and message writing, showing that the initial scope was already a full read-write email client rather than only a message viewer.

The first tagged release, v0.1.0, appeared on 2021-01-17. Through the 0.x series, the project expanded around mailbox, envelope, flag, message, and attachment operations. A v1 series followed, with v1.0.0 tagged in 2024 and v1.2.0 tagged in 2026.

The Pimalaya site describes the larger effort as Rust libraries and applications for personal information management, including email, contacts, calendars, tasks, and timers. Himalaya's later v2 migration notes place the CLI inside that broader architecture: protocol logic moved toward I/O-free libraries, OAuth moved into ortie, keyring handling moved into mimosa, message composition moved into mml, and session reuse moved into syrup.

### 采用历史

Himalaya reached several package ecosystems because it solves a concrete terminal-user problem: email automation without a graphical client. The README documents installation through Homebrew, Arch Linux, Scoop, Fedora/CentOS/RHEL COPR, Nix flakes, Cargo, pre-built GitHub binaries, and source builds.

Its adoption story is strongest among users who want mail in editor, shell, and script workflows. Pimalaya also lists companion interfaces such as himalaya-tui, and the Himalaya README notes that the CLI and TUI share the same account configuration blocks. That makes the package useful both as a direct CLI and as a backend for richer terminal interfaces.

### 使用方式

Himalaya loads persistent account configuration from XDG and legacy Unix paths, supports a configuration wizard, and uses TOML account blocks. The README documents provider-oriented examples for Proton Mail, Gmail, Outlook, and iCloud Mail, including command-backed secrets and OAuth token helpers.

The CLI exposes a shared API for common mail concepts and protocol-specific APIs for native backend capabilities. It can emit JSON, so package users can compose it with jq, fzf, editor commands, notification scripts, and other terminal automation.

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

For package nerds, Himalaya is interesting because it turns email into a scriptable Rust CLI while still respecting the complexity of real email providers. It carries the usual package-manager virtues: a single executable, documented config locations, multiple install channels, and well-scoped optional build features.

The v2 migration is also a useful case study in CLI maintainability. The maintainers explicitly removed over-broad backend abstraction from the CLI and pushed protocol, auth, composition, keyring, and session-reuse concerns into smaller tools and libraries. That kind of decomposition matters to downstream packagers because it clarifies what the packaged binary is responsible for.

### 时间线

- 2020-12-24: Public repository history begins with project initialization and TOML config parsing.
- 2021-01-17: v0.1.0 is tagged.
- 2021: Early releases add mailbox, envelope, IMAP, SMTP, and message-management functionality.
- 2022: Pimalaya is described as an organized PIM effort around Rust libraries and applications.
- 2024: v1.0.0 is tagged.
- 2026: v1.2.0 is tagged, and v2 migration notes document a split into smaller Pimalaya libraries and helper tools.

### Related projects

- Pimalaya is the umbrella project for the Rust PIM libraries and applications around Himalaya.
- himalaya-tui is a terminal interface that shares Himalaya account configuration.
- ortie, mimosa, mml, and syrup are Pimalaya tools or libraries referenced by the migration guide for OAuth, password access, message composition, and session reuse.
- Traditional adjacent tools include mutt/neomutt, mbsync/isync, OfflineIMAP, notmuch, and maildir-based workflows, although Himalaya's official docs emphasize its own protocol backends rather than positioning it as a clone of any one of them.

### 来源

- Official Git repository tags and commits for timeline dates.
- Official Himalaya migration guide for v1-to-v2 architectural evolution.
- Official Himalaya repository README for feature, install, configuration, and backend details.
- Official Pimalaya website for project scope and founding context.


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool 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: $XDG_CONFIG_HOME/himalaya/config.toml, ~/.config/himalaya/config.toml, ~/.himalayarc
## 其他软件包管理器记录

- Nix - himalaya: normalized package name match | nixpkgs package indexes: pkgs/by-name/hi/himalaya/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - himalaya - 1.2.0-r0: normalized package name match | Alpine Linux edge package indexes: himalaya from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI email client | https://github.com/soywod/himalaya
- apk - himalaya-bash-completion - 1.2.0-r0: normalized package name match | Alpine Linux edge package indexes: himalaya-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for himalaya | https://github.com/soywod/himalaya
- apk - himalaya-doc - 1.2.0-r0: normalized package name match | Alpine Linux edge package indexes: himalaya-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI email client (documentation) | https://github.com/soywod/himalaya
- apk - himalaya-fish-completion - 1.2.0-r0: normalized package name match | Alpine Linux edge package indexes: himalaya-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for himalaya | https://github.com/soywod/himalaya
- apk - himalaya-zsh-completion - 1.2.0-r0: normalized package name match | Alpine Linux edge package indexes: himalaya-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for himalaya | https://github.com/soywod/himalaya
- pacman - himalaya - 2.0.0-1: normalized package name match | Arch Linux sync databases: himalaya from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A CLI email client | https://github.com/soywod/himalaya
- zypper - himalaya - 2.0.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: himalaya from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command-line interface for email management | https://github.com/pimalaya/himalaya
- MacPorts - himalaya: normalized package name match | MacPorts ports tree: mail/himalaya/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/himalaya: normalized package name match | Scoop official bucket manifest trees: bucket/himalaya.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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