Linux install: Get the Flutter SDK
Get the Flutter SDK
- Download the following installation bundle to get the latest stable release of the Flutter SDK: flutter_linux_v1.9.1+hotfix.6-stable.tar.xz For other release channels, and older builds, see the SDK archive page.
- Extract the file in the desired location.
- Add the flutter tool to your path.
- Optionally, pre-download development binaries.
Run flutter doctor
Run the command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v flag).
Update your path
- Determine the directory where you placed the Flutter SDK. You need this in Step 3.
- Open (or create) the rc file for your shell. For example, Linux uses the Bash shell by default, so edit $HOME/.bashrc. If you are using a different shell, the file path and filename will be different on your machine.
- Add the following line and change [PATH_TO_FLUTTER_GIT_DIRECTORY] to be the path where you cloned Flutter’s git repo:.
- Run source $HOME/.<rc file> to refresh the current window, or open a new terminal window to automatically source the file.
- Verify that the flutter/bin directory is now in your PATH by running: $ echo $PATH.
- Verify that the flutter command is available by running: $ which flutter.
Update path directly
- Determine the directory where you placed the Flutter SDK.
- Locate the etc directory at the root of the system, and open the profile file with root privileges.
- Update the PATH string with the location of your Flutter SDK directory.
- End the current session or reboot your system.
- Once you start a new session, verify that the flutter command is available by running: $ which flutter.