- System requirements
This page describes how to download the Dart SDK.The Dart SDK has the libraries and command-line tools that you need to developDart command-line, server, and non-Flutter web apps.For details, see the Dart SDK overview.
Get packages for all flutter projects. Once you have cloned this repo, navigate to the root of this repo. Next run./getpackages.sh. Make sure the script is executable. If it is not, then run chmod +x getpackages.sh first to make it executable. I welcome and encourage all pull requests. Homebrew Flutter. Super-easy two-step Flutter installation with Homebrew 😎. This will install the latest master dev beta stable version of the framework directly from Google's servers.
As of Flutter 1.21, the Flutter SDK includes the full Dart SDK.So if you have Flutter installed,you might not need to explicitly download the Dart SDK.Consider downloading the Dart SDK ifany of the following are true:
- You don’t use Flutter.
- You use a pre-1.21 version of Flutter.
- You want to reduce disk space requirements or download time,and your use case doesn’t require Flutter.For example, you might have a continuous integration (CI)setup that requires Dart but not Flutter.
Installing the Dart SDK
As the following instructions show,you can use a package managerto easily install and update a stable channel Dart SDK.Alternatively, you canbuild the SDK from source or install fromany release channel bydownloading the SDK as a zip file.
To control the submission of metrics, use the following options on the
--enable-analytics: Enables anonymous analytics.
--disable-analytics: Disables anonymous analytics.
You can install the Dart SDK using Chocolatey.
Important:These commands require administrator privileges.If you need help on starting an administrator-level command prompt,try a search likecmd admin.
To install the Dart SDK:
To upgrade the Dart SDK:
If you’re using Debian/Ubuntu on AMD64 (64-bit Intel), you can choose one of thefollowing options, both of which can update the SDK automatically when newversions are released.
Install using apt-get
Perform the following one-time setup:
Then install the Dart SDK:
Install a Debian package
Alternatively, download Dart SDK as Debian packagein the
.deb package format.
Modify PATH for access to all Dart binaries
After installing the SDK, add its
bin directory to your
PATH. For example,use the following command to change
PATH in your active terminal session:
To change the PATH for future terminal sessions, use a command like this:
Install Homebrew,and then run the following commands:
Important: Make sure the Homebrew
bin directory is in your
PATH. Setting up the path correctly makes it easier to use Dart SDK commands such as
dart format. For help setting up your path, consult the Homebrew FAQ.
To upgrade when a new release of Dart is available:
To switch between locally installed Dart releases, use
brew switch dart <version>. Example:
Version note: The
brew switch command was removed after the 2.6 release of Homebrew. To continue using
brew switch, downgrade Homebrew to a 2.6 version:
To see which versions of Dart you’ve installed:
The Dart SDK is supported on Windows, Linux, and macOS.
- Supported versions: Windows 10.
- Supported architectures: x64, ia32.
- Supported versions: Recent Linux versions, but only Ubuntu 16.04 is tested.
- Supported architectures: x64, ia32, arm, arm64.
Note: The arm support requires glibc 2.23 or newer due to a dynamic linker bug.
- Supported versions: Latest three major versions.As of April 2021, the following versions are supported:
- macOS 10.14 (Mojave)
- macOS 10.15 (Catalina)
- macOS 11 (Big Sur)
- Supported architectures: x64.Support for arm64 is in progress.
Flutter Homebrew Download
About release channels and version strings
The Dart SDK has three release channels:
Stable channel: stable releases, updated roughly every three months;currently
Stable releases are suitable for production use.
Beta channel: preview releases, usually updated every month;currently
Beta channel builds are preview builds for the stable channel. We recommendtesting, but not releasing, your apps against beta to preview new features ortest compatibility with future releases.
Dev channel: prereleases, usually updated twice a week;currently
Dev channel releases are the most current with latest changes, may be broken,are unsupported, and may contain unvetted breaking changes.
Stable channel releases of the Dart SDK have
x.y.z version strings like
2.1.0. They consist of dot-separated integers, with no hyphens orletters, where
x is the major version,
y is the minor version, and
z isthe patch version.
Beta and dev channel releases of the Dart SDK (non-stable releases) have
x.y.z-a.b.<beta dev> versions like
2.8.0-20.11.beta. The part before thehyphen follows the stable version scheme,
b after the hyphen are theprerelease and prerelease patch versions, and
dev is the channel.
You can get stable channel releases usingthe instructions above, or you canget stable, beta, or dev channel releasesusing a package manageror by downloading the SDK as a zip file.
The Homebrew package manager may be used on Linux and Windows Subsystem for Linux (WSL). Homebrew was formerly referred to as Linuxbrew when running on Linux or WSL. It can be installed in your home directory, in which case it does not use sudo. Homebrew does not use any libraries provided by your host system, except glibc and gcc if they are new enough. Homebrew can install its own current versions of glibc and gcc for older distributions of Linux.
Features, installation instructions and requirements are described below. Terminology (e.g. the difference between a Cellar, Tap, Cask and so forth) is explained in the documentation.
- Can install software to your home directory and so does not require sudo
- Install software not packaged by your host distribution
- Install up-to-date versions of software when your host distribution is old
- Use the same package manager to manage your macOS, Linux, and Windows systems
Instructions for a supported install of Homebrew on Linux are on the homepage.
The installation script installs Homebrew to
/home/linuxbrew/.linuxbrew using sudo if possible and in your home directory at
~/.linuxbrew otherwise. Homebrew does not use sudo after installation. Using
/home/linuxbrew/.linuxbrew allows the use of more binary packages (bottles) than installing in your personal home directory.
/home/linuxbrew/.linuxbrew was chosen so that users without admin access can ask an admin to create a
linuxbrew role account and still benefit from precompiled binaries. If you do not yourself have admin privileges, consider asking your admin staff to create a
linuxbrew role account for you with home directory
Follow the Next steps instructions to add Homebrew to your
PATH and to your bash shell profile script, either
~/.profile on Debian/Ubuntu or
~/.bash_profile on CentOS/Fedora/Red Hat.
You’re done! Try installing a package:
If you’re using an older distribution of Linux, installing your first package will also install a recent version of glibc and gcc. Use
brew doctor to troubleshoot common issues.
- GCC 4.7.0 or newer
- Linux 2.6.32 or newer
- Glibc 2.13 or newer
- 64-bit x86_64 CPU
Paste at a terminal prompt:
Debian or Ubuntu
Fedora, CentOS, or Red Hat
Homebrew can run on 32-bit ARM (Raspberry Pi and others) and 64-bit ARM (AArch64), but no binary packages (bottles) are available. Support for ARM is on a best-effort basis. Pull requests are welcome to improve the experience on ARM platforms.
You may need to install your own Ruby using your system package manager, a PPA, or
rbenv/ruby-build as we no longer distribute a Homebrew Portable Ruby for ARM.
Homebrew does not currently support 32-bit x86 platforms. It would be possible for Homebrew to work on 32-bit x86 platforms with some effort. An interested and dedicated person could maintain a fork of Homebrew to develop support for 32-bit x86.
git clone Homebrew wherever you want. Use
/home/linuxbrew/.linuxbrew if possible (to enable the use of binary packages).