Israel Science and Technology Directory

Internet Dart

Installing Dart

To install Dart on Debian/Ubuntu systems, you must first add the Google signing key and repository. Enter the following commands in your terminal:

sudo apt-get update sudo apt-get install apt-transport-https

1. Download the Google Linux signing key

wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg

2. Add the Dart stable repository to your sources

echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list

3. Install Dart

sudo apt-get update; sudo apt-get install dart

4. Verify Dart installation

To verify that Dart is correctly installed and accessible, type:

dart --version

*For other operating systems, refer to the official Dart website https://dart.dev/get-dart

Uninstall Dart

After installing Dart, if you need to uninstall it, run the following command:

sudo apt-get remove -y dart

and also remove the Dart configuration files

rm -rf ~/.dart

ADVERTISEMENT