A bash script to install Flutter on Linux with support for custom versions, channels, and auto-detection of CPU architecture (x64 / arm64).
bash <(curl -fsSL https://gist.githubusercontent.com/Not-Dhanraj/7a62c05e45d616b217c4b2f06cda17d5/raw/8fc3eddaff62e841bfb33ecba7e54db09a2df25d/fl_sc)| Flag | Description |
|---|---|
--version <VERSION> |
Install a specific Flutter version (e.g. 3.24.0) |
--channel <CHANNEL> |
Choose a release channel: stable (default), beta, or dev |
--replace |
Silently replace an existing Flutter installation |
--help |
Show usage information |
Install the latest stable version:
bash <(curl -fsSL https://gist.githubusercontent.com/Not-Dhanraj/7a62c05e45d616b217c4b2f06cda17d5/raw/8fc3eddaff62e841bfb33ecba7e54db09a2df25d/fl_sc)Install a specific version:
bash <(curl -fsSL .../fl_sc) --version 3.24.0Install from beta channel:
bash <(curl -fsSL .../fl_sc) --channel betaReplace an existing installation:
bash <(curl -fsSL .../fl_sc) --replaceFlutter is installed to $HOME/tools/sdk/flutter.
Add it to your PATH in ~/.bashrc or ~/.zshrc:
export PATH="$PATH:$HOME/tools/sdk/flutter/bin"Then reload: source ~/.bashrc
I Hope this helps :)