Installing
-
2. Install required helpers
Install curl and unzip to download and extract the official Dart SDK archive:
sudo slackpkg install curl unzip
-
3. Download the latest stable Dart SDK (official archive)
Download the official Dart SDK archive. Replace the URL with a specific release if you want to pin a version.
wget -qO /tmp/dartsdk.zip "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip"
-
5. Unpack and move the SDK to a system location
Unzip the SDK and move it to /usr/lib/dart for a system-wide installation:
unzip -q /tmp/dartsdk.zip -d /tmp
sudo mv /tmp/dart-sdk /usr/lib/dart
-
5. Set ownership and permissions
Ensure the SDK files are readable and executable system-wide:
sudo chmod -R 755 /usr/lib/dart
-
6. Add Dart to the system PATH
Create a profile script so all users can use the Dart tools:
echo 'export PATH="$PATH:/usr/lib/dart/bin"' | sudo tee /etc/profile.d/dart.sh >/dev/null
sudo ln -sf /usr/lib/dart/bin/dart /usr/bin/dart
-
7. Reload environment and verify
Reload the profile (or log out/in) and confirm the installation:
source /etc/profile.d/dart.sh
dart --version
-
8. Notes & troubleshooting
If you need a pinned version, replace latest in the download URL with the specific release path from the official archive. For ARM or other architectures, download the matching SDK archive from the Dart archive.
9. Dart Getting Started Guide
Getting Started with Dart for Slackware GNU/Linux
So Now I’m truly Happy if My Guide could Help you to Quick Start with Dart on Slackware!
Contents