Automic VaultAutomic Vault

brew

ohcount を Homebrew, apt, MacPorts, zypper でインストール

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install ohcount

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install ohcount

MacPorts ports tree · textproc/ohcount/Portfile · ソース: api.github.com

Linux

Debian apt確認済み · 92%
sudo apt install ohcount

Debian stable package indexes · ohcount · ソース: deb.debian.org

openSUSE zypper確認済み · 92%
sudo zypper install ohcount

openSUSE Tumbleweed package metadata · ohcount · ソース: download.opensuse.org

概要

パッケージ概要

Source code line counter

コマンドとエイリアス

  • ohcount

履歴

プロジェクトの歴史と使われ方

Ohcount is the Ohloh/Open Hub source-code line counter: a C and Ragel based analyzer with a command-line tool and language-detection library for counting code, comment, and blank lines across source trees.

プロジェクトの歴史

The project traces back to Ohloh, the open-source project directory and analytics site later associated with Black Duck and Open Hub. Its README says it was originally developed at Ohloh and used to generate the reports at www.openhub.net, which makes it part of the early package-statistics infrastructure rather than just a standalone `wc`-style utility.

The original GitHub source repository was created on 2008-06-09, and the Black Duck fork used by package managers was created on 2010-10-27. The Black Duck repository kept the Ohloh identity in its description while moving the maintained packaging-facing project under the Black Duck Software organization.

採用の歴史

Ohcount's most important adoption story is Open Hub itself: the tool was used to generate Open Hub's source-code reports, giving it a role in public open-source metrics. It also reached mainstream Unix packaging through Homebrew, Debian, Ubuntu, MacPorts, and openSUSE-style distributions, but Homebrew analytics generated on 2026-07-01 showed a small niche user base: 49 installs over 365 days.

The package stayed interesting to distributors because it is not a single-language counter. The README describes a detector for primary language family, a parser for line-by-line breakdowns, support for multiple languages in one file, whole-directory counting, language-family file discovery, detailed source annotations, and Ruby bindings.

使われ方

Developers and auditors use `ohcount` to count individual files or entire directory trees, identify source files by language family, and produce detailed annotations of a file's lines. Its ability to split mixed files, such as HTML with CSS and JavaScript regions, made it more sophisticated than plain line counters.

Package builders care about its implementation details because the Homebrew formula depends on `libmagic`, `pcre2`, and `ragel`, and applies Debian patches for modern build and PCRE2 support. The README also documents Ruby 2.x test expectations, SWIG bindings, and an unsupported Python wrapper.

パッケージ好きにとっての重要性

Ohcount is a package-nerd artifact because it helped produce package metadata about other projects. It sits in the same historical lane as SLOC counters and open-source forges: the tool is small, but the data it helped generate shaped how people compared projects by language mix and code size.

Its formula tells the story of aging infrastructure kept buildable through distro patches. The combination of Ragel-generated scanners, Ruby bindings, PCRE migration, and GPL-2.0-only licensing gives maintainers plenty of packaging surface area for a deceptively simple CLI.

タイムライン

  • 2008-06-09: the original `korsakov/ohcount` GitHub repository was created.
  • 2010-10-27: Black Duck Software's GitHub fork was created.
  • 2021-12-09: the README build notes recorded tested build requirements for Ubuntu, Fedora, and macOS.
  • 2026-07-01: Homebrew's formula API reported stable version 4.0.0 and packaged executables under `ohcount`.

Related projects

  • Ohcount is closely tied to Ohloh/Open Hub. It is also related to other source line counters such as `cloc`, but its distinctive lineage is its use inside an open-source analytics service rather than only as a local developer utility.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 3 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
ohcountcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版4.0.0
マネージャ更新日2026-07-11
ローカルデータOK
上流最新
検出された最新4.0.0

https://github.com/blackducksoftware/ohcount

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:ohcount
バージョン4.0.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/ohcount
ホームページhttps://github.com/blackducksoftware/ohcount
リポジトリhttps://github.com/blackducksoftware/ohcount
上流ドキュメントhttps://github.com/blackducksoftware/ohcount#readme
ライセンスGPL-2.0-only
ソースアーカイブhttps://github.com/blackducksoftware/ohcount/archive/refs/tags/4.0.0.tar.gz
最終更新2026-07-11T09:50:47+09:00
Pulseupdated
依存関係libmagic, pcre2, ragel
ビルド依存関係gperf
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameohcount
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

ohcount 4.0.0-5

Source code line counter

https://github.com/blackducksoftware/ohcount

sudo apt install ohcount
  • Section: utils
  • Architecture: amd64
  • 7 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Ohcount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ohcount from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ohcount-doc 4.0.0-5

Source code line counter - Documentation

https://github.com/blackducksoftware/ohcount

sudo apt install ohcount-doc
  • Section: doc
  • Architecture: all
  • Source Package: ohcount
  • normalized package name match
  • 一致条件: Ohcount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ohcount-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

ohcount 4.0.0-4build2

Source code line counter

https://github.com/blackducksoftware/ohcount

sudo apt install ohcount
  • Section: universe/utils
  • Architecture: amd64
  • 7 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Ohcount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ohcount from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ohcount-doc 4.0.0-4build2

Source code line counter - Documentation

https://github.com/blackducksoftware/ohcount

sudo apt install ohcount-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: ohcount
  • normalized package name match
  • 一致条件: Ohcount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ohcount-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
zypper95%

ohcount 4.0.0-3.3

The Ohloh source code line counter

https://www.openhub.net/p/ohcount

sudo zypper install ohcount
  • License: GPL-2.0-only
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: ohcount
  • 3 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ohcount
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ohcount from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ohcount

sudo port install ohcount
  • normalized package name match
  • 一致条件: Ohcount
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/ohcount/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment