Automic VaultAutomic Vault

brew

cloc mit Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, chocolatey, scoop, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cloc in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install cloc

local Homebrew formula metadata

MacPortsverifiziert · 94%
sudo port install cloc

MacPorts ports tree · textproc/cloc/Portfile · Quelle: api.github.com

Linux

Alpine Linux apkverifiziert · 92%
sudo apk add cloc

Alpine Linux edge package indexes · cloc · Quelle: dl-cdn.alpinelinux.org

Debian aptverifiziert · 92%
sudo apt install cloc

Debian stable package indexes · cloc · Quelle: deb.debian.org

Fedora dnfverifiziert · 92%
sudo dnf install cloc

Fedora Rawhide package metadata · cloc · Quelle: dl.fedoraproject.org

Nixverifiziert · 92%
nix profile install nixpkgs#cloc

nixpkgs package indexes · pkgs/by-name/cl/cloc/package.nix · Quelle: api.github.com

Arch Linux pacmanverifiziert · 92%
sudo pacman -S cloc

Arch Linux sync databases · cloc · Quelle: geo.mirror.pkgbuild.com

Windows

Chocolateyverifiziert · 92%
choco install CLOC

Chocolatey community package catalog · CLOC · Quelle: community.chocolatey.org

Scoopverifiziert · 92%
scoop install main/cloc

Scoop official bucket manifest trees · bucket/cloc.json · Quelle: api.github.com

Windows Package Managerverifiziert · 92%
winget install --id AlDanial.Cloc -e

Windows Package Manager source index · AlDanial.Cloc · Quelle: cdn.winget.microsoft.com

Überblick

Paketzusammenfassung

Statistics utility to count lines of code

Verlauf

Projektgeschichte und Nutzung

cloc counts blank lines, comment lines, and physical source lines across many programming languages, with support for files, directories, archives, repositories, and diffs.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 2006: SourceForge hosting begins and Al Danial copyright history starts.
  • 2015: Project moves from SourceForge to GitHub.
  • 2021: cloc receives a Zenodo DOI badge in upstream metadata.
  • 2024: Version 2.00 released with no breaking changes from 1.x.
  • 2025: Version 2.06 uses GitHub Actions for release packaging and Windows executable work.
  • 2026: Version 2.08 released with additional language/file-type support and packaging refinements.

Related projects

  • Related projects include David Wheeler's SLOCCount, Git, Docker, Perl packaging ecosystems, App::cloc on CPAN, the npm cloc package, and package-manager formulae for Homebrew, MacPorts, Chocolatey, Scoop, Winget, and Linux distributions.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
cloccliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-25
Manager-Version2.10
Manager aktualisiert2026-07-04
lokale DatenOK
Upstreamaktuell
neueste erkannte Versionv2.10

https://github.com/AlDanial/cloc

  • OKEs wurden keine Aktualitätswarnungen generiert.

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:cloc
Version2.10
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/cloc
Homepagehttps://github.com/AlDanial/cloc/
Repositoryhttps://github.com/AlDanial/cloc
Upstream-Dokumentationhttps://github.com/AlDanial/cloc#readme
LizenzGPL-2.0-or-later
Quellarchivhttps://github.com/AlDanial/cloc/archive/refs/tags/v2.10.tar.gz
Zuletzt aktualisiert2026-07-04T23:36:10Z
Pulseupdated
Von macOS bereitgestellte Bibliothekenperl
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Debian apt95%

cloc 2.04-1

statistics utility to count lines of code

https://github.com/AlDanial/cloc

sudo apt install cloc
  • Section: devel
  • Architecture: all
  • 4 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Cloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cloc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

cloc

nix profile install nixpkgs#cloc
  • normalized package name match
  • Abgeglichen nach: Cloc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cl/cloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

cloc 1.98-1

statistics utility to count lines of code

https://github.com/AlDanial/cloc

sudo apt install cloc
  • Section: universe/devel
  • Architecture: all
  • 4 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Cloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cloc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

cloc 2.08-r0

Count lines of code

https://github.com/AlDanial/cloc

sudo apk add cloc
  • License: GPL-2.0-or-later Artistic-2.0
  • Architecture: x86_64
  • Source Package: cloc
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Cloc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cloc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cloc-doc 2.08-r0

Count lines of code (documentation)

https://github.com/AlDanial/cloc

sudo apk add cloc-doc
  • License: GPL-2.0-or-later Artistic-2.0
  • Architecture: x86_64
  • Source Package: cloc
  • normalized package name match
  • Abgeglichen nach: Cloc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cloc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

cloc 2.08-1.fc45

Count lines of code

https://github.com/AlDanial/cloc

sudo dnf install cloc
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: cloc
  • 2 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Cloc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cloc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

cloc 2.08-1

Count lines of code

https://github.com/AlDanial/cloc

sudo pacman -S cloc
  • License: GPL-2.0-or-later
  • Architecture: any
  • 4 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Cloc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cloc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

cloc

sudo port install cloc
  • normalized package name match
  • Abgeglichen nach: Cloc
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/cloc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

CLOC

choco install CLOC
  • normalized package name match
  • Abgeglichen nach: Cloc
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: CLOC from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','chocolatey-preinstaller-checks.extension'
Scoop95%

main/cloc

scoop install main/cloc
  • normalized package name match
  • Abgeglichen nach: Cloc
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/cloc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

AlDanial.Cloc

winget install --id AlDanial.Cloc -e
  • normalized package name match
  • Abgeglichen nach: Cloc
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: AlDanial.Cloc from https://cdn.winget.microsoft.com/cache/source.msix

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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