# Install sloc with Homebrew, Nix

Simple tool to count source lines of code. Version 0.3.2 via Homebrew; verified 2026-06-14.

## Install

```sh
sudo av install brew:sloc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sloc
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sloc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sl/sloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:sloc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sloc>
- **Version:** 0.3.2
- **Source summary:** Simple tool to count source lines of code
- **Homepage:** <https://github.com/flosse/sloc>
- **Repository:** <https://github.com/flosse/sloc>
- **Upstream docs:** <https://github.com/flosse/sloc#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/sloc/-/sloc-0.3.2.tgz>
- **Last updated:** 2026-06-14T15:13:50+02:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- sloc (cli)
- sloc (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.3.2
- Package-manager updated: 2026-06-14
- Local data: ok
- Upstream repository: https://github.com/flosse/sloc
- info: No cached GitHub release or tag data was available.

## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sloc
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - sloc: normalized package name match | nixpkgs package indexes: pkgs/by-name/sl/sloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [sloccount](https://www.automicvault.com/pkg/brew/sloccount/) - Shares av.db curated category or tags: cli, code-metrics, developer-tools, source-lines-of-code.
- [action-docs](https://www.automicvault.com/pkg/brew/action-docs/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [chalk-cli](https://www.automicvault.com/pkg/brew/chalk-cli/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [corepack](https://www.automicvault.com/pkg/brew/corepack/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [czg](https://www.automicvault.com/pkg/brew/czg/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [flamebearer](https://www.automicvault.com/pkg/brew/flamebearer/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [fnm](https://www.automicvault.com/pkg/brew/fnm/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [gatsby-cli](https://www.automicvault.com/pkg/brew/gatsby-cli/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [sloc](https://www.automicvault.com/pkg/npm/sloc/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, code, count, developer, developer-tools.
- [node-sloc](https://www.automicvault.com/pkg/npm/node-sloc/) - Executable or command metadata overlaps with this package. Shared terms: cli, code, developer, developer-tools, metrics.
- [http-server](https://www.automicvault.com/pkg/brew/http-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, node, nodejs.
- [sloc](https://www.automicvault.com/pkg/npm/sloc/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/sloc.yml](https://github.com/automic-vault/db/blob/main/combined/sloc.yml)


## Sources

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