pkg.soopen package index

brew / rang 7450

Installer hgrep avec Homebrew, MacPorts, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de hgrep pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install hgrep

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install hgrep

MacPorts ports tree · textproc/hgrep/Portfile · Source: api.github.com

Linux

Nixvérifié · 92%
nix profile install nixpkgs#hgrep

nixpkgs package indexes · pkgs/by-name/hg/hgrep/package.nix · Source: api.github.com

aperçu

Résumé du paquet

Grep with human-friendly search results

Commandes et alias

  • hgrep

historique

Historique du projet et usages

hgrep is a Rust command-line search presenter that aims to make local grep results look more like code-search output: matched regions are shown as syntax-highlighted snippets with useful surrounding context.

Its niche is deliberately narrow. Rather than replacing grep or ripgrep outright, it wraps a built-in subset of ripgrep or reads `grep -nH` and `rg -nH` output from standard input, then formats results with syntect or bat-backed printers.

Historique du projet

The public release line begins with v0.1.x tags in October 2021. The README describes the original product idea as combining ripgrep-style search with bat-style highlighted display, while keeping a pipe-friendly mode for existing grep workflows.

The 0.2 and 0.3 series show the project tightening around terminal ergonomics: generated shell completions and man pages, binary release archives, static Linux builds, macOS and Windows support, and improved handling of color capability and encodings.

Historique d'adoption

The official README documents installation through release binaries, Homebrew, MacPorts, NetBSD pkgsrc/pkgin, Debian-style `.deb` packages, and Cargo. That packaging spread matches hgrep's role as a small terminal utility rather than a library platform.

The project also exposes feature flags so users can keep the built-in ripgrep search, the syntect printer, or the bat printer, which made it practical for package maintainers and source builders to tune dependency weight.

Modes d'utilisation

Typical use is either `hgrep pattern path` for its built-in ripgrep subset or `rg -nH pattern path | hgrep` when the user wants full ripgrep behavior and hgrep only as the display stage.

hgrep is most useful when raw grep output has too little context: it groups nearby matches, chooses context around blank lines, applies syntax highlighting, and can generate shell completions or a manual page for packaged installs.

Pourquoi les passionnés de paquets s'y intéressent

For package-manager users, hgrep is an example of the Rust CLI ecosystem's composable-search style: ripgrep supplies fast traversal and matching, bat/syntect supply readable code presentation, and the final binary stays scriptable.

It is also interesting as a dependency-shaping package. Builders can choose feature combinations to trade install time, binary size, and formatting behavior instead of carrying every optional printer path.

Chronologie

  • 2021: v0.1.x public tags establish the Rust CLI release line.
  • 2021: v0.2.0 follows within weeks, continuing rapid terminal-search iteration.
  • 2023: v0.3.0 updates syntect and bat integration and adds manual-page generation.
  • 2024: v0.3.7 adds broader text-encoding support, including BOM-based detection.
  • 2025: v0.3.9 adds Arm Windows release artifacts and additional language/theme support.

Related projects

  • ripgrep is the closest search-engine relative: hgrep can embed a subset of ripgrep or consume `rg -nH` output.
  • bat and syntect are presentation relatives: hgrep uses them as alternative syntax-highlighted output paths.
  • Traditional grep remains part of the workflow because hgrep can read `grep -nH` output from standard input.

Sources

  • Changelog: https://github.com/rhysd/hgrep/blob/master/CHANGELOG.md
  • README: https://github.com/rhysd/hgrep#readme
  • Repository tags: https://github.com/rhysd/hgrep/tags

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucune métadonnée de bottle Homebrew n’a été enregistrée.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
hgrepexécutableexécutable indexéDécouvert depuis l'index local des exécutables.

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-08-03
version du gestionnaire0.3.9
gestionnaire mis à jour
données localesinconnu
amontnon disponible
dernière version détectéenon détecté
  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:hgrep
Version0.3.9
Gestionnaire de paquetsHomebrew
Page d'accueilhttps://github.com/rhysd/hgrep
Dépôthttps://github.com/rhysd/hgrep
Bouteillenon enregistré
Serviceaucun déclaré

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Nix95%

hgrep

nix profile install nixpkgs#hgrep
  • normalized package name match
  • Correspondance par : Hgrep
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/hg/hgrep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

hgrep

sudo port install hgrep
  • normalized package name match
  • Correspondance par : Hgrep
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/hgrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

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