# 使用 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
- **版本:** 1.5
- **来源摘要:** for your terminal window
- **主页:** <https://github.com/LuRsT/hr>
- **仓库:** <https://github.com/LuRsT/hr>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## Combined YAML source

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


## 来源

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