Open In App

How to Install Flutter on Linux?

Last Updated : 26 Oct, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

In this article, we will learn how to install Flutter in Linux

Flutter is an open-source UI software development kit created by Google. It is used to develop cross-platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase.

Installing Flutter on Linux:

Method 1: Using snapd

Step 1: Install snapd for Linux

Step 2: Enter the following command in Terminal to install Flutter

sudo snap install flutter --classic

Method 2: Using installation bundle

Step 1: Get the link of the latest stable release of flutter package from here

Step 2: Replace the download link with the latest one and enter the following command in terminal

curl https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_2.5.3-stable.tar.xz > flutter.tar.xz

downloading flutter installation bundle

Step 3: Extract the downloaded package using the following command.

tar xf ~/flutter.tar.xz

extracting flutter.tar.xz

Step 4: Add the flutter bin folder path to environment path by entering it in terminal.

export PATH="$PATH:`pwd`/flutter/bin"

adding the path in env

Method 3: Using git 

Step 1: Install git for Linux

Step 2: Enter the following command to clone the latest stable release from Flutter Repo using Git

git clone https://github.com/flutter/flutter.git -b stable

cloning flutter source via git

Step 3: Add the flutter bin folder path to the environment path by entering it in terminal.

export PATH="$PATH:`pwd`/flutter/bin"

adding the path in env

Verification:

Run the following command in terminal to check if flutter is successfully installed

flutter doctor

flutter doctorflutter doctor summary

Here you can see Flutter is successfully installed, the remaining issues are due to missing Android Studio, Android SDK, Google Chrome and Android Emulator


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads