# Install dart-sdk with Homebrew, apk, chocolatey, MacPorts, winget, apt, Nix, pacman, scoop

Dart Language SDK, including the VM, dart2js, core libraries, and more. Version 3.12.2 via Homebrew; verified 2026-06-09.

## Install

```sh
sudo av install brew:dart-sdk
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dart-sdk
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dart-sdk
```

  Evidence: MacPorts ports tree: lang/dart-sdk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dart-sdk
```

  Evidence: Alpine Linux edge package indexes: dart-sdk from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dart-doc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dart
```

  Evidence: nixpkgs package indexes: dart from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S dart
```

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

### Windows

- Chocolatey (92%):

```sh
choco install dart-sdk
```

  Evidence: Chocolatey community package catalog: dart-sdk from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','crystalreports2008runtime'

- winget (92%):

```sh
winget install --id Google.DartSDK -e
```

  Evidence: Windows Package Manager source index: Google.DartSDK from https://cdn.winget.microsoft.com/cache/source.msix

- Scoop (92%):

```sh
scoop install main/dart
```

  Evidence: Scoop official bucket manifest trees: bucket/dart.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:dart-sdk
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dart-sdk>
- **Version:** 3.12.2
- **Source summary:** Dart Language SDK, including the VM, dart2js, core libraries, and more
- **Homepage:** <https://dart.dev>
- **Repository:** <https://github.com/dart-lang/sdk>
- **Upstream docs:** <https://dart.dev/guides>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/dart-lang/sdk/archive/refs/tags/3.12.2.tar.gz>
- **Last updated:** 2026-06-09T17:16:08Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dart (cli)
- dart (alias)

## Build dependencies

- ninja
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.12.2
- Package-manager updated: 2026-06-09
- Local data: ok
- Upstream repository: https://github.com/dart-lang/sdk
- Upstream latest detected: 3.12.2 (current)
## Project history and usage

The Dart SDK is the main distribution of the Dart programming language: the VM, compilers, core libraries, package tooling, and command-line tools installed as the `dart` command. In package-manager culture it is both a language runtime and the gateway to Dart's build, compile, and package workflows.

### Project history

Dart was introduced by Google as a structured language for building client applications, and the SDK became the standard way to obtain the VM, analyzer, compilers, and core command-line tooling. The SDK's role expanded as Dart grew from browser-focused ambitions into the runtime and toolchain behind Flutter and server-side Dart workflows.

The official SDK documentation frames the package as a bundle of libraries and command-line tools, including `dart`, `dart analyze`, `dart compile`, and pub package management. That makes the SDK more than a runtime package: it is the thing downstream packages use to build, test, publish, and execute Dart code.

### Adoption history

Dart SDK adoption is tied closely to Flutter and to Dart's own package ecosystem. As Flutter made Dart a mainstream mobile and cross-platform application language, installing a current SDK became a routine prerequisite for CI systems, editors, and package build environments.

Dart 3 reinforced the SDK's package-manager significance by making sound null safety and modern language behavior the baseline for new tooling. Formula and package updates can therefore affect language compatibility, analyzer behavior, package resolution, and generated artifacts.

### How it is used

Typical usage starts with the `dart` command: creating projects, running programs, managing dependencies through pub, analyzing code, testing packages, and compiling executables or snapshots. Project configuration normally lives in `pubspec.yaml`, with local overrides in `pubspec_overrides.yaml` and pub authentication tokens stored in the Dart user configuration area.

### Why package nerds care

The SDK is important to package nerds because it sits at the boundary between runtime, compiler, package manager, and language version. A small SDK version change can alter pub resolution, compiler output, analyzer diagnostics, and compatibility with generated Flutter or server artifacts.

### Timeline

- 2013: Dart 1.0 was announced as a stable SDK release.
- 2023: Dart 3 made sound null safety and newer language semantics the stable baseline.
- Present: The SDK remains the official distribution for Dart command-line tools, compilers, VM, and package workflows.

### Related projects

- The Dart SDK is closely related to Flutter, pub.dev packages, the `pub` package manager built into the `dart` command, and the `dartaotruntime` tool used for running AOT-compiled snapshots.

### Sources

- <https://dart.dev/tools/sdk>
- <https://dart.dev/tools/pub/pubspec>
- <https://dart.dev/tools/pub/cmd/pub-token>
- <https://dart.dev/resources/dart-3-migration>
- <https://news.dartlang.org/2013/11/dart-10-stable-sdk-for-structured-web.html>


## Security Notes

narrow executable package without higher-risk signals.

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


## 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: pubspec.yaml, pubspec_overrides.yaml

## Credential files

- Linux: $XDG_CONFIG_HOME/dart/pub-tokens.json, ~/.config/dart/pub-tokens.json
- macOS: ~/Library/Application Support/dart/pub-tokens.json
- Windows: %APPDATA%\dart\pub-tokens.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dart-sdk
- **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

- apk - dart-sdk - 3.10.3-r1: normalized package name match | Alpine Linux edge package indexes: dart-sdk from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Dart is a client-optimized language for fast apps on any platform (development files) | https://dart.dev/
- MacPorts - dart-sdk: normalized package name match | MacPorts ports tree: lang/dart-sdk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - dart-sdk: normalized package name match | Chocolatey community package catalog: dart-sdk from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','crystalreports2008runtime'
- winget - Google.DartSDK: normalized package name match | Windows Package Manager source index: Google.DartSDK from https://cdn.winget.microsoft.com/cache/source.msix
- Debian apt - dart-doc - 6.13.2+ds-3: installed executable or alias match | Debian stable package indexes: dart-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - Documentation | https://dartsim.github.io/
- Debian apt - libdart-all-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-all-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - All Development Files | https://dartsim.github.io/
- Debian apt - libdart-collision-bullet-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-collision-bullet-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - Bullet Collision Dev | https://dartsim.github.io/
- Debian apt - libdart-collision-bullet6.13 - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-collision-bullet6.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - Bullet Collision Library | https://dartsim.github.io/
- Debian apt - libdart-collision-ode-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-collision-ode-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - ODE Collision Dev | https://dartsim.github.io/
- Debian apt - libdart-collision-ode6.13 - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-collision-ode6.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - ODE Collision Library | https://dartsim.github.io/
- Debian apt - libdart-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - development files | https://dartsim.github.io/
- Debian apt - libdart-external-convhull-3d-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-external-convhull-3d-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - convhull-3d dev | https://dartsim.github.io/
- Debian apt - libdart-external-ikfast-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-external-ikfast-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - ikfast dev | https://dartsim.github.io/
- Debian apt - libdart-external-imgui-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-external-imgui-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - imgui dev | https://dartsim.github.io/
- Debian apt - libdart-external-imgui6.13 - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-external-imgui6.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - imgui lib | https://dartsim.github.io/
- Debian apt - libdart-external-lodepng-dev - 6.13.2+ds-3+b1: installed executable or alias match | Debian stable package indexes: libdart-external-lodepng-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Kinematics Dynamics and Optimization Library - lodepng dev | https://dartsim.github.io/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [groovysdk](https://www.automicvault.com/pkg/brew/groovysdk/) - Shares av.db curated category or tags: cli, language-runtime, sdk.
- [algol68g](https://www.automicvault.com/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ats2-postiats](https://www.automicvault.com/pkg/brew/ats2-postiats/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ballerina](https://www.automicvault.com/pkg/brew/ballerina/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [c3c](https://www.automicvault.com/pkg/brew/c3c/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [chapel](https://www.automicvault.com/pkg/brew/chapel/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [chezscheme](https://www.automicvault.com/pkg/brew/chezscheme/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [clojurescript](https://www.automicvault.com/pkg/brew/clojurescript/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [dartaotruntime](https://www.automicvault.com/pkg/brew/dartaotruntime/) - Local package facts share a topical domain. Shared terms: cli, dart, language, language-runtime, runtime.
- [io](https://www.automicvault.com/pkg/brew/io/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, machine, programming.
- [neko](https://www.automicvault.com/pkg/brew/neko/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, machine, programming.

## Combined YAML source

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