How to upgrade flutter SDK in Terminal

Upgrading the Flutter SDK in the Terminal is a simple process that can be completed in just a few steps. Follow the instructions below to upgrade your Flutter SDK using the Terminal on your computer.

Step 1: Check your Current Flutter Version

The first step is to check the current version of Flutter that you have installed on your computer. To do this, open the Terminal and run the following command:

flutter --version

This command will display the version of Flutter that is currently installed on your computer.

Step 2: Download the Latest Flutter SDK

To upgrade Flutter, you need to download the latest version of the Flutter SDK. You can download the latest version of the Flutter SDK from the official Flutter website. Download the version that is compatible with your operating system.

Read also, the Flutter Custom toggle Switch example.

Step 3: Unzip the Flutter SDK

Once you have downloaded the latest version of the Flutter SDK, you need to unzip the downloaded file. Open the Terminal and navigate to the directory where you downloaded the Flutter SDK. Use the following command to unzip the downloaded file:

tar xf flutter_linux_2.8.2-stable.tar.xz

Note: The filename may vary depending on the version of Flutter you downloaded.

Step 4: Move the Flutter SDK to a New Location

After unzipping the Flutter SDK, you need to move it to a new location. This is because the Flutter SDK is installed globally on your computer, and if you upgrade it in the same location, it can cause conflicts. Use the following command to move the Flutter SDK to a new location:

sudo mv flutter /usr/local/

Step 5: Update your PATH Environment Variable

To use the new version of Flutter, you need to update your PATH environment variable. Open your bashrc file in your terminal using your favorite text editor. Here is an example using nano editor:

nano ~/.bashrc

Then add the following line to the end of the file:

export PATH=$PATH:/usr/local/flutter/bin

Save the file and close it. Then reload your bashrc file by running the following command:

source ~/.bashrc

Step 6: Verify the New Flutter Version

To verify that you have upgraded your Flutter SDK successfully, run the following command in your terminal:

flutter --version

This command will display the new version of the Flutter SDK that you have just upgraded to.


flutter upgrade
Flutter Upgrade Example
Flutter Upgrade

Flutter SDK upgrade Terminal

Flutter Upgrade
  • Boost WooCommerce Security: Set Up OTP Login in WordPress
    Passwords, while essential for security, can be vulnerable to hacking and breaches. To add an extra layer of protection for your WooCommerce store, consider implementing an OTP (One-Time Password) login. This guide walks you through the process of setting up an OTP login in WordPress for enhanced security. Why Use OTP Login? Enhanced Security: OTPs …

    Read more …

  • How to Create Woocommerce Flutter App for WordPress free
    Absolutely! Let’s break down how to create a WooCommerce Flutter app for your WordPress store. Here’s a comprehensive outline of the process and essential considerations: 1. Setup Your Development Environment 2. Project Structure 3. Dependencies 4. Core Functionality 5. User Interface (UI) and User Experience 6. Additional Features (Optional) Example Code Snippet (Fetching Products) Important …

    Read more …

  • How to Add a Link to Your Facebook Story in 2024
    Facebook Stories have become an integral part of our social media experience, allowing us to share moments and updates with our friends and followers. But did you know that you can also add links to your Facebook Stories? Adding a link to your story can be a powerful way to drive traffic to your website, …

    Read more …

  • Troubleshooting “Failed to download Laravel from dist” Error
    If you encounter the “Failed to download Laravel from dist” error while working with Laravel 10, it is likely due to the absence of the zip extension and unzip/7z commands on your system. This error prevents the successful download of Laravel from the distribution (dist) repository. What causes this error? The error occurs when the …

    Read more …

  • Solutions for “The file is too large for the destination file system” Error on Pendrive
    If you have ever encountered the frustrating error message “The file is too large for the destination file system” when trying to transfer files to your pendrive, don’t worry! There are a few solutions you can try to resolve this issue. 1. Format the Pendrive: One of the easiest ways to fix this error is …

    Read more …

Read also, Flutter Circular progress indicator?

Congratulations! You have successfully upgraded your Flutter SDK using Terminal on your computer. By following the above steps, you can easily upgrade your Flutter SDK and take advantage of the latest features and improvements.

Leave a Comment