# 使用 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
- **版本:** 3.0.0
- **来源摘要:** High-Performance String Search Utility
- **主页:** <https://github.com/davidesantangelo/krep>
- **仓库:** <https://github.com/davidesantangelo/krep>
- **最后更新:** 2026-07-01T10:09:27Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- krep (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
