Dart moves rather quickly with releases every 6 weeks or so. Lots of posts on this blog are for Chocolatey which is fine for Windows but I spend most of my Dart time on Linux so how do I update? There are a few methods but I decided to roll my own Bash shell script which downloads and unzips the SDK and Dartium to the current folder.
Hope someone finds this useful!
P.S. The first wget download is the ARM version which I use on my Raspberry Pi.
#!/bin/bash VERSION="1.19.1" wget https://storage.googleapis.com/dart-archive/channels/stable/release/$VERSION/sdk/dartsdk-linux-arm-release.zip wget https://storage.googleapis.com/dart-archive/channels/stable/release/$VERSION/sdk/dartsdk-linux-x64-release.zip wget https://storage.googleapis.com/dart-archive/channels/stable/release/$VERSION/dartium/dartium-linux-x64-release.zip unzip -qq -o dartsdk-linux-x64-release.zip unzip -qq -o dartium-linux-x64-release.zip rm dartsdk-linux-x64-release.zip rm dartium-linux-x64-release.zip dart --version