Install Dart in Linux

Terminal Commands are responsible for Installation of Application in Linux. So, there are some fixed set of commands which can be used to install. Let us check these types of commands which are mentioned below:

Step 0: Update and Upgrade apt

It is like prerequisite for installing any application. Commands to Upgrade and Update apt are mentioned below:

$ sudo apt-get update
$ sudo apt-get upgrade

// Few older version will face issues while installtion so use
$ sudo apt-get install apt-transport-https

Step 1: Creating a Dart Repository and Install GPG keys from Google

Create a Repository to store dart and also install gpg keys from Google used to sign the Dart packages to your system’s list of trusted keys.

$ sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
$ sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'

Step 2: Install Dart

Final Step will be to install Dart in your Linux operated PC.

$ sudo apt-get update
$ sudo apt-get install dart

Setting the Path of Dart in Linux

Setting Path of Dart in Linux to execute the Dart Programs.

// Dart to your Path
$ export PATH="$PATH:/usr/lib/dart/bin"

// Apply Changes
$ source ~/.bashrc

// This command should display the installed Dart SDK version 
$ dart --version

Dart SDK Installation

In order to do a lot of interesting programming stuff using the Dart programming language, we have to install the Dart SDK. Dart SDK is a pre-compiled version so we have to download and extract it only.

In this article, we will learn how to perform Dart SDK Download.

Table of Content

  • Install Dart SDK in Windows
  • Install Dart in Linux
  • Install Dart in MacOs

Similar Reads

1. Install Dart SDK in Windows

Step 1: Download Dart SDK. Download Dart SDK from the Dart SDK archive page. The URL is:...

2. Install Dart in Linux

Terminal Commands are responsible for Installation of Application in Linux. So, there are some fixed set of commands which can be used to install. Let us check these types of commands which are mentioned below:...

3. Install Dart in MacOs

We will install Dart in MacOs using Homebrew....

Contact Us