macOS
brew install gsarlocal Homebrew formula metadata
brew
gsar のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install gsarlocal Homebrew formula metadata
概要
General Search And Replace on files
履歴
gsar is Tormod Tjaberg and Hans Peter Verne's General Search And Replace utility, a command-line search-and-replace tool for text and binary files. Its official manual describes it as a binary-aware grep-like utility without regular-expression support, using a Boyer-Moore-derived search algorithm.
The official source archive identifies the program as gsar 1.51 and credits Tormod Tjaberg and Hans Peter Verne for 1992-2020 copyright. The change log starts with early 1992 implementation work, followed by a sequence of DOS, Unix, compiler-portability, and buffer-handling releases.
The 1996 1.10 release was a major rewrite of the search and replace code, with easier Unix compilation, generated Boyer-Moore-Gosper tables at runtime, and safer handling of directories and buffers. Later releases were quieter maintenance updates, including MinGW support in 2002, larger search buffers and documentation cleanup in 2008, new text modifiers in 2019, and explicit 64-bit file offsets in 2020.
The official homepage says the archive includes full source and DOS/Win32 executables, while most programs compile under Unix as well. Homebrew packages gsar as a small Unix-style command-line utility, which reflects its continued use as a portable binary search-and-replace tool rather than a large active ecosystem.
The homepage notes that gsar was selected as PriceLessWare 2006, indicating some Windows freeware-era recognition before its later package-manager life on Unix-like systems.
gsar searches one or more input files, optionally replaces matches, can overwrite multiple files, and can operate as a stdin/stdout filter. The manual emphasizes binary-safe strings, byte offsets, hex entry, DOS-to-Unix and Unix-to-DOS conversion helpers, and context display.
Typical package-manager usage is for scripts or one-off maintenance where byte-oriented search and replace is needed without regular expressions, especially across binary files or files containing control characters.
gsar is package-nerd interesting because it is a compact old utility that still fills a sharp niche: binary-safe search and replacement with source available, no runtime dependency stack, and behavior stable enough for packaging.
Its long change log is a small history of portability work across DOS, Windows, Unix, MinGW, compiler quirks, large-file offsets, and command-line parsing, which is exactly the sort of maintenance package managers preserve for users who need the old tool to keep working.
セキュリティ状態
generalized runtime or code generation signal.
リスク yellow · 信頼度 中 · runtime
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
gsar | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:gsar |
|---|---|
| バージョン | 1.51 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gsar |
| ホームページ | https://tjaberg.com/ |
| 上流ドキュメント | https://tjaberg.com/ |
| ライセンス | GPL-2.0-only |
| ソースアーカイブ | https://tjaberg.com/gsar151.zip |
| Bottle | 利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gsar |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.