macOS
brew install cloclocal Homebrew formula metadata
sudo port install clocMacPorts ports tree · textproc/cloc/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cloc pour les workflows d'agents IA.
installation
brew install cloclocal Homebrew formula metadata
sudo port install clocMacPorts ports tree · textproc/cloc/Portfile · Source: api.github.com
sudo apk add clocAlpine Linux edge package indexes · cloc · Source: dl-cdn.alpinelinux.org
sudo apt install clocDebian stable package indexes · cloc · Source: deb.debian.org
sudo dnf install clocFedora Rawhide package metadata · cloc · Source: dl.fedoraproject.org
nix profile install nixpkgs#clocnixpkgs package indexes · pkgs/by-name/cl/cloc/package.nix · Source: api.github.com
sudo pacman -S clocArch Linux sync databases · cloc · Source: geo.mirror.pkgbuild.com
choco install CLOCChocolatey community package catalog · CLOC · Source: community.chocolatey.org
scoop install main/clocScoop official bucket manifest trees · bucket/cloc.json · Source: api.github.com
winget install --id AlDanial.Cloc -eWindows Package Manager source index · AlDanial.Cloc · Source: cdn.winget.microsoft.com
aperçu
Statistics utility to count lines of code
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
cloc | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/AlDanial/cloc
métadonnées d'installation
| Clé du paquet | brew:cloc |
|---|---|
| Version | 2.10 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/cloc |
| Page d'accueil | https://github.com/AlDanial/cloc/ |
| Dépôt | https://github.com/AlDanial/cloc |
| Docs amont | https://github.com/AlDanial/cloc#readme |
| Licence | GPL-2.0-or-later |
| Archive source | https://github.com/AlDanial/cloc/archive/refs/tags/v2.10.tar.gz |
| Dernière mise à jour | 2026-07-04T23:36:10Z |
| Pulse | updated |
| Bibliothèques fournies par macOS | perl |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.