Installing Flutter on Linux
AdminMarch 4, 20261 min read


This is a quick guide for installing flutter on linux. I wanted to use FVM to manage the flutter versions and it will also go over installing any dependencies needed to run flutter apps for linux and web
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y
curl git unzip xz-utils zip libglu1-mesa These packages provide Git, archive tools, and the OpenGL libraries Flutter needs
sudo apt-get install -y
clang cmake ninja-build pkg-config
libgtk-3-dev liblzma-dev libstdc++-12-devThese are required to compile Flutter Linux desktop apps
Whichever install script you prefer
curl -fsSL https://fvm.app/install.sh | bashor via Homebrew(Linuxbrew)
brew tap leoafarias/fvm
brew install fvmIn each project directory, pick a Flutter version (e.g. the stable channel):
fvm install stable
fvm use stableYou can also create a new web-enabled project with
fvm flutter create . --platforms web,linuxflutter run -d chromefvm flutter config --enable-linux-desktop fvm flutter run -d linux