"[TUTORIAL]INSTALL DART_SDK ON LINUX-DEBIAN_LIKE_SYSTEMS"

Published: Sun 17 July 2016

In content.

INSTALL DART_SDK ON LINUX-DEBIAN_LIKE_SYSTEMS

This tutorial was written to guide users in installing dartlang in their linux workstation.

  • Update sudo apt-get update

  • Install apt-transport-https sudo apt-get install apt-transport-https

  • Get Google Linux package signing key sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'

  • Set up the location of the stable repository sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'

And update your system by running this command: apt-get update

Installing the SDK

Run this command: sudo apt-get install dart/stable

This is to install dartlang stable version. Once you're done installing, add following line in $HOME/.profile

  • export PATH=$PATH:/usr/lib/dart/bin

and run this command to refresh your PATH environment variables: source $HOME/.profile

social