# grc を Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

grc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:grc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install grc
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install grc
```

  証拠: MacPorts ports tree: textproc/grc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install grc
```

  証拠: Debian stable package indexes: grc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install grc
```

  証拠: Fedora Rawhide package metadata: grc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#grc
```

  証拠: nixpkgs package indexes: pkgs/by-name/gr/grc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S grc
```

  証拠: Arch Linux sync databases: grc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install grc
```

  証拠: openSUSE Tumbleweed package metadata: grc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:grc
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.13
- **ソース概要:** Colorize logfiles and command output
- **ホームページ:** <https://kassiopeia.juls.savba.sk/~garabik/software/grc.html>
- **リポジトリ:** <https://github.com/garabik/grc>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- grc (エイリアス)
- grcat (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.13
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 1999: Version 0.1 initial release recorded in the upstream changelog.
- 2001: Version 1.0 marked as the first stable version.
- 2003: grcat gained an error path for missing configuration files.
- 2013: Preliminary Python 3 support appeared in version 1.5.
- 2017: Version 1.10 was marked Python 3 compatible and added many configurations.
- 2018: Version 1.11.3 made --colour=auto the default.
- 2021: Version 1.13 and 1.13.1 refined shell alias behavior and IP address coloring.

### Related projects

- grcat is the filtering half of the grc project.
- The upstream README explicitly frames grc among older command-output colorizers such as colortail, gccolor, and colormake.
- Shell startup snippets for bash, zsh, and fish are part of the practical packaging surface.

### ソース

- <https://github.com/garabik/grc>
- <https://kassiopeia.juls.savba.sk/~garabik/software/grc.html>
- <https://kassiopeia.juls.savba.sk/~garabik/software/grc/README.txt>
- <https://raw.githubusercontent.com/garabik/grc/master/debian/changelog>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

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.


## Configuration files

- Unix: ~/.grc/grc.conf, /etc/grc.conf, ~/.grc/<grcat-config>, /usr/local/share/grc/<grcat-config>, /usr/share/grc/<grcat-config>
## 他のパッケージマネージャ記録

- Debian apt - grc - 1.13.1-1: normalized package name match | Debian stable package indexes: grc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic colouriser for everything
- Nix - grc: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/grc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - grc - 1.13.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: grc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic colouriser for everything
- dnf - grc - 1.13-12.fc45: normalized package name match | Fedora Rawhide package metadata: grc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Generic Colorizer | http://korpus.juls.savba.sk/~garabik/software/grc.html
- pacman - grc - 1.13-2: normalized package name match | Arch Linux sync databases: grc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Yet another colouriser for beautifying your logfiles or output of commands | https://github.com/garabik/grc
- zypper - grc - 1.13-2.6: normalized package name match | openSUSE Tumbleweed package metadata: grc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Generic colouriser for everything | http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
- MacPorts - grc: normalized package name match | MacPorts ports tree: textproc/grc/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/grc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/grc.yml)


## ソース

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