macOS
brew install grclocal Homebrew formula metadata
sudo port install grcMacPorts ports tree · textproc/grc/Portfile · 来源: api.github.com
安装
brew install grclocal Homebrew formula metadata
sudo port install grcMacPorts ports tree · textproc/grc/Portfile · 来源: api.github.com
sudo dnf install grcFedora Rawhide package metadata · grc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#grcnixpkgs package indexes · pkgs/by-name/gr/grc/package.nix · 来源: api.github.com
sudo pacman -S grcArch Linux sync databases · grc · 来源: geo.mirror.pkgbuild.com
sudo zypper install grcopenSUSE Tumbleweed package metadata · grc · 来源: download.opensuse.org
概览
Colorize logfiles and command output
历史
grc, the Generic Colouriser, is a small Python command-line wrapper and filter for adding ANSI color to log files and command output. Its package-manager appeal is that it sits in front of ordinary Unix commands rather than replacing them: users keep tools such as ping, traceroute, netstat, ps, diff, and tail, while grc and grcat apply regular-expression based color rules.
Radovan Garabik describes grc as his response to the many separate logfile and command-output colorizers that existed around the late 1990s. The project split the work into two programs: grcat, the filter that reads standard input and applies color rules, and grc, the front end that runs another command and selects an appropriate grcat configuration.
The upstream Debian-style changelog records version 0.1 as the initial release on 1999-10-14 and version 1.0 as the first stable version on 2001-02-23. Subsequent entries show the project accumulating the kind of practical terminal features package users notice: stderr handling, nested and overlapping regexes, multiline blocks, skip rules, diff coloring, Python 3 compatibility work, zsh alias compatibility, and additional command configurations.
grc fit naturally into Unix packaging because it is a wrapper around existing commands, ships as a small script-and-configuration package, and can be enabled per shell through bash, zsh, or fish snippets. The batch package facts list it across Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE ecosystems, which matches its role as a portable terminal enhancement rather than a platform-specific application.
Typical use is interactive: run commands such as grc ping hostname, grc tail /var/log/syslog, or pipe data through grcat with a named configuration. grc chooses color rules from /etc/grc.conf or ~/.grc/grc.conf, then grcat searches user and system configuration directories for the referenced rule file.
The configuration model is intentionally plain text. Rules are regular expressions with keywords such as regexp, colours, command, concat, skip, replace, and count, so package maintainers and users can add color rules without changing the program.
grc is a classic package-nerd utility because its value grows with distro integration: the useful part is not just the executable, but the curated set of color files, shell snippets, and install paths that make common commands nicer immediately after installation.
It also illustrates the long tail of terminal polish packages: small, old, stable-enough tools that persist because they compose with everything else in the shell.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.grc/grc.conf/etc/grc.conf~/.grc/<grcat-config>/usr/local/share/grc/<grcat-config>/usr/share/grc/<grcat-config>可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
grc | cli | 全局可执行文件 | |
grcat | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/garabik/grc
安装元数据
| 软件包键 | brew:grc |
|---|---|
| 版本 | 1.13 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/grc |
| 主页 | https://kassiopeia.juls.savba.sk/~garabik/software/grc.html |
| 仓库 | https://github.com/garabik/grc |
| 上游文档 | https://kassiopeia.juls.savba.sk/~garabik/software/grc.html |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://github.com/garabik/grc/archive/refs/tags/v1.13.tar.gz |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | grc |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
grc 1.13.1-1
generic colouriser for everything
sudo apt install grcgrc
nix profile install nixpkgs#grcgrc 1.13.1-1
generic colouriser for everything
sudo apt install grcgrc 1.13-11.fc44
Generic Colorizer
http://korpus.juls.savba.sk/~garabik/software/grc.html
sudo dnf install grcgrc 1.13-2
Yet another colouriser for beautifying your logfiles or output of commands
https://github.com/garabik/grc
sudo pacman -S grcgrc 1.13-2.5
Generic colouriser for everything
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
sudo zypper install grcgrc
sudo port install grc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.