# 使用 Homebrew, MacPorts, Nix 安装 krep

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

## 安装

```sh
sudo av install brew:krep
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install krep
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install krep
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#krep
```

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

## 软件包事实

- **软件包键:** brew:krep
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/krep>
- **版本:** 3.0.0
- **来源摘要:** High-Performance String Search Utility
- **主页:** <https://github.com/davidesantangelo/krep>
- **仓库:** <https://github.com/davidesantangelo/krep>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/davidesantangelo/krep/archive/refs/tags/v3.0.0.tar.gz>
- **最后更新:** 2026-07-01T10:09:27Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- krep (cli)
- krep (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.0
- 管理器更新时间: 2026-07-01
- 本地数据: OK
- 上游仓库: https://github.com/davidesantangelo/krep
- 检测到的最新版本: v3.0.0 (当前)
## 项目历史与用法

krep is a small, performance-oriented text search CLI. Its history is narrow and mostly self-documented, but it fits the long package-manager tradition of grep-like tools competing on speed, ergonomics, and script-friendly output.

### 项目历史

The GitHub repository was created on 2025-03-08. The README describes krep as an optimized string search utility with mmap-based I/O, adaptive algorithms, SIMD acceleration, multithreading, recursive traversal controls, JSON Lines output, context display, and statistics.

The README's name note says krep was inspired by the Icelandic word kreppan and was chosen as a short command name for frequent terminal use. Version 3.0 is described as the point where the tool moved from a minimal scanner into a more practical daily search CLI.

### 采用历史

Public adoption evidence is thin compared with established search tools. Packaging in Homebrew, MacPorts, and Nix shows that it reached multiple package-manager ecosystems, but the official materials do not document a large user community or institutional deployment history.

### 使用方式

krep is used like grep-style search tools: fixed-string or regex searches over files, directories, stdin, or literal strings, with recursive filtering, .gitignore support, JSON Lines output, quiet checks, file listing, and selectable algorithms.

For package users, the appeal is a single native CLI binary with performance features exposed through familiar command-line flags rather than a service or library integration.

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

krep is package-nerd interesting mostly as another entry in the modern grep replacement lineage: it combines classic POSIX search expectations with hardware-aware optimizations and machine-readable output, while staying small enough for straightforward source packaging.

### 时间线

- 2025-03-08: The krep GitHub repository was created.
- 2026: The README described version 3.0 as the move from minimal fast scanner to daily search CLI.

### Related projects

- Related tools include grep, ripgrep, The Silver Searcher, and other source-tree search utilities. krep's README explicitly compares reproducible benchmarks against ripgrep.

### 来源

- <https://formulae.brew.sh/formula/krep>
- <https://github.com/davidesantangelo/krep>
- <https://github.com/davidesantangelo/krep#readme>
- <https://ports.macports.org/port/krep/>
- <https://search.nixos.org/packages?query=krep>


## 安全说明

没有找到 krep 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** krep
- **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 - krep: normalized package name match | nixpkgs package indexes: pkgs/by-name/kr/krep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - krep: normalized package name match | MacPorts ports tree: textproc/krep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [ripgrep](https://pkg.so/zh-hans/brew/ripgrep/) - Shares pkgdb curated category or tags: cli, developer-tools, regex, search.
- [sift](https://pkg.so/zh-hans/brew/sift/) - Shares pkgdb curated category or tags: cli, developer-tools, search, text-search.
- [sk](https://pkg.so/zh-hans/brew/sk/) - Shares pkgdb curated category or tags: cli, developer-tools, search.
- [ripgrep-all](https://pkg.so/zh-hans/brew/ripgrep-all/) - Shares pkgdb curated category or tags: cli, developer-tools, search.
- [ddgr](https://pkg.so/zh-hans/brew/ddgr/) - Shares pkgdb curated category or tags: cli, developer-tools, search.
- [jvgrep](https://pkg.so/zh-hans/brew/jvgrep/) - Shares pkgdb curated category or tags: cli, developer-tools, search.
- [comby](https://pkg.so/zh-hans/brew/comby/) - Shares pkgdb curated category or tags: cli, developer-tools, search.
- [pazpar2](https://pkg.so/zh-hans/brew/pazpar2/) - Shares pkgdb curated category or tags: cli, developer-tools, search.

## Combined YAML source

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


## 来源

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