Flutter is a renowned open-source user interface software development kit employed by developers across the globe. It enables the creation of natively compiled applications for mobile, web, and desktop from a single codebase. This article guides you through a step-by-step process of installing Flutter on Fedora 39.
Updating Your System
Proper system update ensures all existing packages are up-to-date, and the system repo cache is refreshed. To update Fedora 39:
sudo dnf clean all sudo dnf update
Installing Dependencies
Flutter requires certain dependencies for it to function optimally:
sudo dnf install bash curl file git unzip which xz zip mesa-libGLU clang cmake ninja-build pkg-config
To keep things organized, it’s good practice to create a dedicated folder for Flutter. For instance:
mkdir ~/mycoding
Installing Flutter
Visit the official Flutter website and download the latest stable release of the Flutter SDK for Linux using the wget command:
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.9-stable.tar.xz
After downloading, navigate to the directory where the Flutter SDK is and extract the file. If the SDK is downloaded to the ~/Downloads directory, use the following commands:
cd ~/Downloads tar xf flutter_linux_3.16.9-stable.tar.xz
Move the extracted flutter directory to the mycoding directory (or any other directory you created):
mv flutter ~/mycoding/
To use Flutter commands globally, add Flutter to your system path:
export PATH="$PATH:`pwd`/flutter/bin"
To make this change permanent, add the export command to your .bashrc or .zshrc file.
Running Flutter
After Flutter installation, verify the installation by running the flutter doctor command. This command checks your environment and displays a report of the status of your Flutter installation:
flutter doctor
Next, create a new Flutter project. Navigate to the directory where you want to create the project and run:
flutter create my_app
Replace my app with your preferred project name. This command creates a new Flutter project in the myapp directory.
You have successfully installed Flutter on your Fedora 39 system. For further or useful information, visit the official Flutter website.
If you find this process overwhelming or it is outside your area of expertise, consider opting for a managed service. Shape.host offers Linux SSD VPS. They can manage your VPS, allowing you to focus on what you do best.