# 使用 Homebrew, apk, MacPorts, Nix 安装 hr

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

## 安装

```sh
sudo av install brew:hr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hr
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hr
```

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

### Linux

- apk (92%):

```sh
sudo apk add hr
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#hr
```

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

## 软件包事实

- **软件包键:** brew:hr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hr>
- **版本:** 1.5
- **来源摘要:** for your terminal window
- **主页:** <https://github.com/LuRsT/hr>
- **仓库:** <https://github.com/LuRsT/hr>
- **上游文档:** <https://github.com/LuRsT/hr#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/LuRsT/hr/archive/refs/tags/1.5.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- hr (cli)
- hr (别名)

## 安装行为

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

## 版本和新鲜度

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

hr is a tiny POSIX-shell command that prints horizontal rules across a terminal window, usually to visually separate logs, command output, or debugging sessions.

### 项目历史

The project presents itself as a minimal terminal helper: a single shell script using POSIX shell and tput, installable by copying the script, running make install, or installing the Homebrew formula on macOS.

### 采用历史

Its adoption footprint is small but package-manager friendly. The input metadata records packages for Homebrew, MacPorts, Nix, and Alpine, matching the kind of small Unix utility that survives because it is scriptable, dependency-light, and easy to vendor.

### 使用方式

The README shows hr with no arguments for a default rule, with a custom character such as '*', and with multiple arguments to produce stacked ASCII patterns.

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

hr is package-nerd candy because it is the whole Unix small-tool philosophy reduced to a visual separator: no service, no state, no configuration, just a command that composes with a shell session.

### 时间线

- 1.0: Public tagged release in the upstream Git repository.
- 1.5: Later tagged release in the upstream Git repository.
- Homebrew formula: Packaged as brew:hr according to input metadata.

### Related projects

- Related tools include shell prompt theming, terminal log separators, and ad hoc printf or tput snippets that users often keep in shell profiles.

### 来源

- <https://formulae.brew.sh/formula/hr>
- <https://github.com/LuRsT/hr#readme>
- <https://github.com/LuRsT/hr/wiki>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - hr: normalized package name match | nixpkgs package indexes: pkgs/by-name/hr/hr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - hr - 1.5-r0: normalized package name match | Alpine Linux edge package indexes: hr from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Script that prints characters in the entire width of the terminal | https://github.com/LuRsT/hr
- apk - hr-doc - 1.5-r0: normalized package name match | Alpine Linux edge package indexes: hr-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Script that prints characters in the entire width of the terminal (documentation) | https://github.com/LuRsT/hr
- MacPorts - hr: normalized package name match | MacPorts ports tree: sysutils/hr/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.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [lolcat](https://www.automicvault.com/zh-hans/pkg/brew/lolcat/) - Shares av.db curated category or tags: cli, system, terminal, terminal-utilities.
- [lolcrab](https://www.automicvault.com/zh-hans/pkg/brew/lolcrab/) - Shares av.db curated category or tags: cli, system, terminal, terminal-utilities.
- [bashish](https://www.automicvault.com/zh-hans/pkg/brew/bashish/) - Shares av.db curated category or tags: cli, shell, system, terminal.
- [clifm](https://www.automicvault.com/zh-hans/pkg/brew/clifm/) - Shares av.db curated category or tags: cli, shell, system, terminal.
- [murex](https://www.automicvault.com/zh-hans/pkg/brew/murex/) - Shares av.db curated category or tags: cli, shell, system, terminal.
- [nsh](https://www.automicvault.com/zh-hans/pkg/brew/nsh/) - Shares av.db curated category or tags: cli, shell, system, terminal.
- [nushell](https://www.automicvault.com/zh-hans/pkg/brew/nushell/) - Shares av.db curated category or tags: cli, shell, system, terminal.
- [rsync-time-backup](https://www.automicvault.com/zh-hans/pkg/brew/rsync-time-backup/) - Shares av.db curated category or tags: cli, shell, system, terminal.

## Combined YAML source

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