pkg.soopen package index

brew / 排名 1218

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 tokei

查看 tokei 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install tokei

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install tokei

MacPorts ports tree · devel/tokei/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add tokei

Alpine Linux edge package indexes · tokei · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install tokei

Debian stable package indexes · tokei · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install tokei

Fedora Rawhide package metadata · tokei · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#tokei

nixpkgs package indexes · pkgs/by-name/to/tokei/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S tokei

Arch Linux sync databases · tokei · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install tokei

openSUSE Tumbleweed package metadata · tokei · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/tokei

Scoop official bucket manifest trees · bucket/tokei.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id XAMPPRocky.Tokei -e

Windows Package Manager source index · XAMPPRocky.Tokei · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Program that allows you to count code, quickly

命令和别名

  • tokei

历史

项目历史与用法

Tokei is a Rust code-statistics tool that counts files, total lines, code, comments, and blanks by language, with both CLI and library use cases.

项目历史

The README positions Tokei as a fast and accurate counter for source trees, emphasizing multi-line and nested-comment handling, more than 150 supported languages, multiple machine-readable output formats, and use as a library.

Tokei's changelog follows Keep a Changelog and Semantic Versioning. Recent entries show continued maintenance through the 13.0.0 alpha series in 2024 and 2025, and a 14.0.0 release dated 2025-12-26 with additional language support such as C++20 modules, Ark TypeScript, and Koka.

采用历史

The upstream README lists package-manager installs across Unix, macOS, and Windows: apk, pacman, Cargo, conda-forge, dnf, FreeBSD pkg, NetBSD pkgin, Nix, zypper, Void, Homebrew, MacPorts, winget, and Scoop. The input facts independently list Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Arch, Scoop, winget, and openSUSE.

The README also advertises crates.io, GitHub, Homebrew, Chocolatey, and Repology badges, reflecting the project's package-manager-centered distribution culture.

使用方式

Typical use is pointing tokei at one or more source directories to get a language-by-language table. It respects .gitignore, .ignore, and .tokeignore by default, can exclude paths, sort by statistics columns, print per-file counts, and emit JSON, YAML, or CBOR for downstream tools.

Because tokei can read prior output back in, it also supports workflows that snapshot code statistics and combine them with later runs.

为什么软件包爱好者会关心

Tokei is significant in the package-nerd niche because it is both a benchmarkable Rust CLI and a widely packaged developer utility. It is small enough to install casually, but broad enough to become a standard smoke-test tool for language detection, ignore-file behavior, terminal output, and package metadata across many ecosystems.

Its long package-manager list and machine-readable output make it useful for maintainers comparing source trees, release artifacts, vendored code, or language mix without bringing in a full analytics stack.

时间线

  • Current: README documents support for Mac, Linux, and Windows, more than 150 languages, JSON/YAML/CBOR output, and library use.
  • 2024-03-04: 13.0.0-alpha.1 changelog entry added maintenance and language-data updates.
  • 2025-07-21: 13.0.0-alpha.9 changelog entry included Markdown CRLF and mixed-line-ending fixes.
  • 2025-12-26: 14.0.0 changelog entry added C++20 modules and Ark TypeScript support.

Related projects

  • Tokei belongs to the same utility family as cloc and scc, though the cited upstream material emphasizes Tokei's own speed, accuracy, language coverage, and Rust library interface.
  • Repology, Homebrew, Cargo, winget, Scoop, and distribution package managers are part of the adoption surface documented by the README and input facts.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tokei可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本14.0.0
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:tokei
版本14.0.0
软件包管理器Homebrew
主页https://github.com/XAMPPRocky/tokei
仓库https://github.com/XAMPPRocky/tokei
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

tokei 12.1.2-6+b1

display statistics about your code

https://tokei.rs

sudo apt install tokei
  • Section: utils
  • Architecture: amd64
  • Source Package: rust-tokei
  • 2 依赖
  • normalized package name match
  • 匹配方式:Tokei
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tokei from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

tokei

nix profile install nixpkgs#tokei
  • normalized package name match
  • 匹配方式:Tokei
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/to/tokei/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

tokei 14.0.0-r0

A blazingly fast CLOC (Count Lines Of Code) program

https://github.com/XAMPPRocky/tokei

sudo apk add tokei
  • License: MIT AND Apache-2.0
  • Architecture: x86_64
  • Source Package: tokei
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Tokei
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tokei from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

tokei 14.0.0-6.fc45

Count your code, quickly

https://crates.io/crates/tokei

sudo dnf install tokei
  • License: (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: rust-tokei
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Tokei
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: tokei from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman95%

tokei 14.0.0-1

A blazingly fast CLOC (Count Lines Of Code) program

https://github.com/XAMPPRocky/tokei

sudo pacman -S tokei
  • License: MIT AND Apache
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Tokei
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: tokei from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

tokei 14.0.0+git0-1.3

Code statistics commandline tool

https://github.com/XAMPPRocky/tokei

sudo zypper install tokei
  • License: (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: tokei
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Tokei
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tokei from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

tokei

sudo port install tokei
  • normalized package name match
  • 匹配方式:Tokei
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/tokei/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/tokei

scoop install main/tokei
  • normalized package name match
  • 匹配方式:Tokei
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/tokei.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

XAMPPRocky.Tokei

winget install --id XAMPPRocky.Tokei -e
  • normalized package name match
  • 匹配方式:Tokei
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: XAMPPRocky.Tokei from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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