5

How can I install Google Dart in my Ubuntu? Is it pre-installed with Ubuntu or have to install manually ?

Jorge Castro
  • 73,717
Raja G
  • 105,327
  • 107
  • 262
  • 331

3 Answers3

9

To install google dart in Ubuntu , open your terminal and type as

sudo apt-add-repository ppa:hachre/dart
sudo apt-get update
sudo apt-get install darteditor dartsdk dartium
Raja G
  • 105,327
  • 107
  • 262
  • 331
2

You can also follow official installation guide for Linux from Dart docs:

Setting up Dart repository

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

Installing Dart SDK using apt-get:

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

Exporting SDK path (you can append following line at the end of your .bashrc file):

 export PATH="$PATH:/usr/lib/dart/bin"
devaerial
  • 131
0

The Google Dart is available as part of Ubuntu Make:

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install umake

After that just run the Dart installer as your user (don't use sudo in this case):

umake dart

It will prompt you where to install Dart, and then download it automatically and install it.

Jorge Castro
  • 73,717