Skip to content

Instantly share code, notes, and snippets.

@Not-Dhanraj
Last active March 2, 2026 17:10
Show Gist options
  • Select an option

  • Save Not-Dhanraj/8412ebf889003b66ce4e60b0143d59e4 to your computer and use it in GitHub Desktop.

Select an option

Save Not-Dhanraj/8412ebf889003b66ce4e60b0143d59e4 to your computer and use it in GitHub Desktop.
Install Script for flutter (Tested on Ubuntu 25.10)

Flutter Linux Installer

A bash script to install Flutter on Linux with support for custom versions, channels, and auto-detection of CPU architecture (x64 / arm64).

Quick Install

bash <(curl -fsSL https://gist.githubusercontent.com/Not-Dhanraj/7a62c05e45d616b217c4b2f06cda17d5/raw/8fc3eddaff62e841bfb33ecba7e54db09a2df25d/fl_sc)

Options

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

Examples

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.0

Install from beta channel:

bash <(curl -fsSL .../fl_sc) --channel beta

Replace an existing installation:

bash <(curl -fsSL .../fl_sc) --replace

Install Location

Flutter 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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment