# Install corepack with Homebrew, Nix, pacman, zypper

Package acting as bridge between Node projects and their package managers. Version 0.35.0 via Homebrew; verified 2026-05-15.

## Install

```sh
sudo av install brew:corepack
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install corepack
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#corepack
```

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

- pacman (92%):

```sh
sudo pacman -S corepack
```

  Evidence: Arch Linux sync databases: corepack from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install corepack-default
```

  Evidence: openSUSE Tumbleweed package metadata: corepack-default from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:corepack
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/corepack>
- **Version:** 0.35.0
- **Source summary:** Package acting as bridge between Node projects and their package managers
- **Homepage:** <https://github.com/nodejs/corepack>
- **Repository:** <https://github.com/nodejs/corepack>
- **Upstream docs:** <https://github.com/nodejs/corepack#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/corepack/-/corepack-0.35.0.tgz>
- **Last updated:** 2026-05-15T21:25:02Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- corepack (cli)
- corepack (alias)

## Dependencies

- node

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.35.0
- Package-manager updated: 2026-05-15
- Local data: ok
- Upstream repository: https://github.com/nodejs/corepack
- info: No cached GitHub release or tag data was available.
## Project history and usage

Corepack is a Node.js package-manager shim and version manager that bridges a project to the package manager version it declares. It is most associated with Yarn and pnpm workflows, where the package.json packageManager field can select the expected tool and version.

### Project history

The nodejs/corepack repository was created in 2020. Its README describes Corepack as a zero-runtime-dependency Node.js script that lets projects use Yarn, npm, and pnpm without installing each package manager globally.

Corepack was distributed with Node.js from version 14.19.0 up to, but not including, 25.0.0. That bundling made it a notable piece of Node's package-management story even for users who never installed the standalone package directly.

### Adoption history

Corepack adoption followed the rise of package-manager pinning in JavaScript projects. Instead of relying on whatever yarn or pnpm binary happened to be globally installed, a project could declare the package manager in package.json and let Corepack fetch or activate a compatible version.

### How it is used

Common usage is to enable Corepack, then run package-manager commands such as yarn install or pnpm install in a project. Corepack reads package.json metadata, resolves the intended package manager version, and manages cached package-manager binaries rather than acting as the dependency installer itself.

### Why package nerds care

Corepack is package-nerd infrastructure about package managers themselves. It moved version pinning for Yarn and pnpm closer to the Node runtime and made the package.json packageManager field operational, which changed how distributions and CI images think about globally installed JavaScript package tools.

### Timeline

- 2020: nodejs/corepack repository created.
- 2021-2022: Corepack distributed with Node.js 14.19.0 and newer supported Node release lines.
- 2026: v0.35.0 released upstream as Node.js no longer bundles Corepack starting with the Node 25 line.

### Related projects

- Corepack is related to Node.js, npm, Yarn, pnpm, the package.json packageManager field, and JavaScript CI/runtime distribution images.

### Sources

- <https://github.com/nodejs/corepack>
- <https://github.com/nodejs/corepack#readme>
- <https://github.com/nodejs/corepack/releases>
- <https://nodejs.org/api/corepack.html>
- <https://nodejs.org/api/packages.html#packagemanager>


## 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: package.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** corepack
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** hadoop, pnpm, yarn
- **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 - corepack: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/corepack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - corepack - 0.34.6-1: normalized package name match | Arch Linux sync databases: corepack from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Zero-runtime-dependency Node.js script | https://github.com/nodejs/corepack
- zypper - corepack-default - 6.1-5.2: normalized package name match | openSUSE Tumbleweed package metadata: corepack-default from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Default version of corepack | https://github.com/AdamMajer/nodejs-packaging


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [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.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [ni](https://www.automicvault.com/pkg/brew/ni/) - Shares av.db curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [nrm](https://www.automicvault.com/pkg/brew/nrm/) - Shares av.db curated category or tags: cli, developer-tools, javascript, nodejs, npm.
- [pnpm](https://www.automicvault.com/pkg/brew/pnpm/) - Shares av.db curated category or tags: cli, developer-tools, javascript, nodejs, package-management.
- [install-peerdeps](https://www.automicvault.com/pkg/brew/install-peerdeps/) - Shares av.db curated category or tags: cli, developer-tools, javascript, npm, package-management.
- [qnm](https://www.automicvault.com/pkg/brew/qnm/) - Shares av.db curated category or tags: cli, developer-tools, javascript, nodejs, npm.
- [npm-check-updates](https://www.automicvault.com/pkg/brew/npm-check-updates/) - Shares av.db curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [orogene](https://www.automicvault.com/pkg/brew/orogene/) - Shares av.db curated category or tags: cli, developer-tools, nodejs, package-management, package-manager.
- [patch-package](https://www.automicvault.com/pkg/brew/patch-package/) - Shares av.db curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [corepack](https://www.automicvault.com/pkg/npm/corepack/) - Same normalized package name appears in another local ecosystem. Shared terms: corepack, pnpm, yarn.
- [corepack](https://www.automicvault.com/pkg/npm/corepack/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/corepack.yml](https://github.com/automic-vault/db/blob/main/combined/corepack.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
