macOS
brew install cloclocal Homebrew formula metadata
sudo port install clocMacPorts ports tree · textproc/cloc/Portfile · ソース: api.github.com
brew
cloc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install cloclocal Homebrew formula metadata
sudo port install clocMacPorts ports tree · textproc/cloc/Portfile · ソース: api.github.com
sudo apk add clocAlpine Linux edge package indexes · cloc · ソース: dl-cdn.alpinelinux.org
sudo dnf install clocFedora Rawhide package metadata · cloc · ソース: dl.fedoraproject.org
nix profile install nixpkgs#clocnixpkgs package indexes · pkgs/by-name/cl/cloc/package.nix · ソース: api.github.com
sudo pacman -S clocArch Linux sync databases · cloc · ソース: geo.mirror.pkgbuild.com
choco install CLOCChocolatey community package catalog · CLOC · ソース: community.chocolatey.org
scoop install main/clocScoop official bucket manifest trees · bucket/cloc.json · ソース: api.github.com
winget install --id AlDanial.Cloc -eWindows Package Manager source index · AlDanial.Cloc · ソース: cdn.winget.microsoft.com
概要
Statistics utility to count lines of code
履歴
cloc counts blank lines, comment lines, and physical source lines across many programming languages, with support for files, directories, archives, repositories, and diffs.
cloc was created by Al Danial and dates to 2006, when the project was hosted on SourceForge. The official README states that cloc moved to GitHub in September 2015 after SourceForge hosting that began in August 2006.
The tool is written in Perl, is designed to be portable with few external requirements, and incorporates ideas or code from SLOCCount, Regexp::Common, Win32::Autoglob, and Algorithm::Diff. Release notes show steady additions of language recognizers, output formats, archive support, VCS/diff features, and Windows packaging improvements.
cloc became a staple packaging target because it is useful in almost any source tree and easy to ship as a command-line utility. The official README documents installation through npm, apt, yum, dnf, pacman, emerge, apk, pkg, pkg_add, MacPorts, Homebrew, winget, Chocolatey, Scoop, Docker, and GitHub releases.
The batch input independently records coverage across Alpine, Homebrew, Chocolatey, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, and Winget, matching cloc's broad cross-platform adoption.
Users run `cloc` on a file, directory, archive, git commit, or repository to get language-level blank/comment/code counts. It can also compare versions, read archives such as tar, zip, wheels, RPMs, and Debian packages, and emit reports in multiple formats.
Because the source version runs on Perl and the Windows executable bundles what it needs, cloc is practical for CI jobs, release audits, quick repository comparisons, and language-mix summaries.
cloc is package-nerd significant because it is one of the standard tiny tools people install everywhere to inspect source distributions. It also tests package metadata assumptions: source archives, generated Windows binaries, shell wrappers, Perl availability, Docker images, CPAN/npm wrappers, and OS-native packages all coexist.
Its README explicitly credits maintainers for Debian, CPAN, and npm packaging, showing that cloc's distribution story is not incidental but part of its ecosystem.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
cloc | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/AlDanial/cloc
インストールメタデータ
| パッケージキー | brew:cloc |
|---|---|
| バージョン | 2.10 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/cloc |
| ホームページ | https://github.com/AlDanial/cloc/ |
| リポジトリ | https://github.com/AlDanial/cloc |
| 上流ドキュメント | https://github.com/AlDanial/cloc#readme |
| ライセンス | GPL-2.0-or-later |
| ソースアーカイブ | https://github.com/AlDanial/cloc/archive/refs/tags/v2.10.tar.gz |
| 最終更新 | 2026-07-04T23:36:10Z |
| Pulse | updated |
| macOS 提供ライブラリ | perl |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cloc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
cloc 2.04-1
statistics utility to count lines of code
https://github.com/AlDanial/cloc
sudo apt install cloccloc
nix profile install nixpkgs#cloccloc 1.98-1
statistics utility to count lines of code
https://github.com/AlDanial/cloc
sudo apt install cloccloc 2.08-r0
Count lines of code
https://github.com/AlDanial/cloc
sudo apk add cloccloc-doc 2.08-r0
Count lines of code (documentation)
https://github.com/AlDanial/cloc
sudo apk add cloc-doccloc 2.08-1.fc45
Count lines of code
https://github.com/AlDanial/cloc
sudo dnf install cloccloc 2.08-1
Count lines of code
https://github.com/AlDanial/cloc
sudo pacman -S cloccloc
sudo port install clocCLOC
choco install CLOCmain/cloc
scoop install main/clocAlDanial.Cloc
winget install --id AlDanial.Cloc -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.