# Install carton with Homebrew, apt

Perl module dependency manager (aka Bundler for Perl). Version 1.0.35 via Homebrew; verified 2026-06-13.

## Install

```sh
sudo av install brew:carton
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install carton
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install carton
```

  Evidence: Debian stable package indexes: carton from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Package facts

- **Package key:** brew:carton
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/carton>
- **Version:** 1.0.35
- **Source summary:** Perl module dependency manager (aka Bundler for Perl)
- **Homepage:** <https://metacpan.org/pod/Carton>
- **Repository:** <https://github.com/perl-carton/carton>
- **Upstream docs:** <https://metacpan.org/pod/Carton>
- **License:** Artistic-1.0-Perl OR GPL-1.0-or-later
- **Source archive:** <https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Carton-v1.0.35.tar.gz>
- **Last updated:** 2026-06-13T01:03:34+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- carton (cli)
- carton (alias)

## Dependencies

- perl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.35
- Package-manager updated: 2026-06-13
- Local data: ok
- Upstream repository: https://metacpan.org/pod/Carton
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Carton is a Perl application dependency manager, described by its official README and MetaCPAN metadata as a Bundler-like tool for Perl. It tracks dependencies declared in cpanfile and pins resolved module versions in cpanfile.snapshot.

### Project history

The public GitHub repository was created in 2011 and the README copyright line credits Tatsuhiko Miyagawa from 2011 onward. The latest MetaCPAN release metadata identifies Carton-v1.0.35, authored by MIYAGAWA and dated May 7, 2022.

### Adoption history

Carton came from the Perl/CPAN application-deployment world, where repeatable local dependency installs mattered for web apps and services. Its README tells developers to commit cpanfile and cpanfile.snapshot so other machines and deployment boxes install the same dependency tree.

### How it is used

A typical workflow declares modules in cpanfile, runs carton install, commits cpanfile and cpanfile.snapshot, then runs commands through carton exec or points Perl at local/lib/perl5. Deployment mode installs exactly from the snapshot, and carton bundle can vendor tarballs into vendor/cache for cached or offline installs.

### Why package nerds care

Carton is important package-manager plumbing because it adapts the lockfile-and-local-install pattern to CPAN applications. Its README explicitly references Bundler, pip, npm, cpanm, cpanfile, and Carmel, making it a useful bridge between Perl packaging culture and the broader application dependency-manager era.

### Timeline

- 2011: Public GitHub repository created and copyright begins.
- 2022: MetaCPAN release metadata lists Carton-v1.0.35.
- 2020s: README documents cpanfile, cpanfile.snapshot, local installs, deployment mode, and vendored cache workflows.

### Related projects

- The README's SEE ALSO section points to Carmel, cpanm, cpanfile, Bundler, pip, npm, perlrocks, and only.
- Carton is closely tied to CPAN, cpanfile, local::lib-style local installs, and Perl application deployment.

### Sources

- <https://api.github.com/repos/perl-carton/carton>
- <https://github.com/perl-carton/carton>
- <https://metacpan.org/pod/Carton>
- <https://metacpan.org/pod/Carton::Doc::Install>
- <https://formulae.brew.sh/api/formula/carton.json>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./cpanfile
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** carton
- **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:** head, stable

## Other Package-Manager Records

- Debian apt - carton - 1.0.35-1: normalized package name match | Debian stable package indexes: carton from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl module dependency manager (aka Bundler for Perl) | https://metacpan.org/release/Carton
- Ubuntu apt - carton - 1.0.35-1: normalized package name match | Ubuntu 24.04 LTS package indexes: carton from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Perl module dependency manager (aka Bundler for Perl) | https://metacpan.org/release/Carton


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [perl](https://www.automicvault.com/pkg/brew/perl/) - Runtime dependency declared by Homebrew.
- [carthage](https://www.automicvault.com/pkg/brew/carthage/) - Shares av.db curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [cask](https://www.automicvault.com/pkg/brew/cask/) - Shares av.db curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [cocoapods](https://www.automicvault.com/pkg/brew/cocoapods/) - Shares av.db curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [coursier](https://www.automicvault.com/pkg/brew/coursier/) - Shares av.db curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [cargo-edit](https://www.automicvault.com/pkg/brew/cargo-edit/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools.
- [cargo-features-manager](https://www.automicvault.com/pkg/brew/cargo-features-manager/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools.
- [cargo-outdated](https://www.automicvault.com/pkg/brew/cargo-outdated/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools.
- [cpanminus](https://www.automicvault.com/pkg/brew/cpanminus/) - Shares av.db curated category or tags: cli, cpan, developer-tools, perl.
- [cpm](https://www.automicvault.com/pkg/brew/cpm/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cpan, developer, developer-tools, management.

## Combined YAML source

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


## Sources

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