How to install and set up Flatpak on a Chromebook

This guide provides clear, step-by-step instructions on how to install and set up the Flatpak Linux package manager on your Chromebook.

In previous guides, we explored what Flatpak is and how Flathub works in detail. Now, let's walk through setting up Flatpak specifically on ChromeOS so you can unlock thousands of desktop Linux applications.

What is Flatpak?

Flatpak is a universal package management and software deployment framework for Linux. It pairs with Flathub—the central Linux app store—allowing you to install and run sandboxed desktop applications across dozens of Linux distributions without dependency conflicts.

Why Should You Install Flatpak on Your Chromebook?

Installing Flatpak on your Chromebook gives you instant access to thousands of popular desktop Linux apps—such as GIMP, LibreOffice, VLC, OBS Studio, and Steam—that are either unavailable or outdated in Chromebook's default Debian repository.

Why Use Flatpak Instead of Default .deb Packages on Chromebook?

Different Linux distributions package software differently. Debian and Ubuntu use .deb packages, while Fedora and Red Hat use .rpm packages. Because Chromebook's built-in Linux container runs Debian, you are normally limited to Debian repositories or manual .deb downloads.

While you can install software using standard apt commands on your Chromebook, relying strictly on native repositories can sometimes cause headaches which usually include:

  • Outdated Software Versions: Debian's stable repositories often carry older versions of popular apps compared to their latest releases.
  • Dependency Conflicts: Installing third-party .deb files manually can fail due to missing or mismatched system libraries.
  • Broken or Slow Mirrors: Unstable third-party PPA links or regional server restrictions can interrupt installations.

Flatpak solves these issues by bundling an app alongside its required libraries inside a secure sandbox. Through Flathub, you get reliable installations and timely updates directly on ChromeOS.

How to Install Flatpak on a Chromebook

Follow these five steps to enable Linux and set up Flatpak and Flathub on your Chromebook:

  1. Enable the Linux Development Environment on Your Chromebook

    Linux support is disabled by default on ChromeOS therefore, the first thing to do is to enable linux development environment on your Chromebook. If you already have the Linux terminal set up, skip ahead to Step 2.

    1. Click the time in the bottom-right corner of your Chromebook screen.
    2. Select the Settings (gear) icon.
    3. In the left menu, go to About ChromeOS (or scroll down to Advanced > Developers on older ChromeOS versions).
    4. Next to Linux development environment, click Turn on.
    5. Follow the on-screen prompts to allocate disk space and install ChromeOS Linux support.
    6. Once complete, a Debian-based Linux terminal window will open automatically.
  2. Launch the Linux Terminal

    If the terminal window is still open from Step 1, you can use it right away. Otherwise, press the Launcher/Search key on your keyboard, type Terminal, and open the Terminal app.

  3. Update Packages and Install Flatpak

    First, update your package index and install Flatpak by pasting the following command into the terminal and pressing Enter:

    sudo apt update && sudo apt install flatpak -y
  4. Add the Flathub Repository

    Next, connect Flatpak to Flathub—the primary app repository hosting thousands of Flatpak apps—by running this command in the terminal:

    flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

    Press Enter to add the repository.

  5. Restart Linux to Complete the Setup

    To finalize the installation and ensure app shortcuts appear properly in your Chromebook launcher, restart your Linux environment:

    • Right-click the Terminal icon on your Chromebook shelf (taskbar) and select Shut down Linux.
    • Reopen the Terminal app to start a fresh session.

    Congratulations! Flatpak is now set up on your Chromebook. You can browse apps on Flathub and install any of them using flatpak install flathub <app-id>.

Optional: Install GNOME Software to Browse Flathub Visually

If you prefer clicking through an app store instead of typing terminal commands to find and install software, you can install GNOME Software center with the Flatpak plugin on your Chromebook.

To do this:

  1. Open your Chromebook's Linux Terminal and run the following command:

    sudo apt install gnome-software-plugin-flatpak -y
  2. Once the installation finishes, press the Launcher/Search key on your Chromebook, type Software, and open the Software app.

  3. You can now visually browse, install, update, and uninstall thousands of Flathub apps with a single click—no terminal commands required.

Tip: Installing gnome-software-plugin-flatpak automatically installs GNOME Software alongside the Flatpak integration, keeping your setup clean and lightweight.

Have Questions or Running Into Issues?

Drop a comment below with any questions or error messages you encounter during setup, and I will be glad to help you troubleshoot.

Frequently Asked Questions (FAQ):

What is Flatpak on a Chromebook?

Flatpak is a universal Linux package management and sandboxing system that works inside ChromeOS's Linux development environment, allowing Chromebook users to install and run thousands of up-to-date desktop Linux apps from Flathub.

Can all Chromebooks run Flatpak?

Any Chromebook that supports the built-in Linux development environment (Crostini) can install and run Flatpak, including both Intel/AMD (x86_64) and ARM-based Chromebooks, provided the specific app supports your processor architecture.

Why use Flatpak instead of .deb packages on ChromeOS?

Flatpak bundles applications with their required libraries in a sandbox, avoiding dependency conflicts and giving Chromebook users access to much newer software versions than Debian's default .deb repositories.

What is the command to add Flathub on a Chromebook?

After installing Flatpak with sudo apt install flatpak, run: flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo in the Chromebook Linux terminal.

Why do I need to shut down Linux after installing Flatpak on ChromeOS?

Shutting down and restarting the Linux container refreshes environment paths so that installed Flatpak applications appear properly in your ChromeOS app launcher.

How do I update Flatpak apps on a Chromebook?

Open your Chromebook's Linux Terminal app and run the command flatpak update to download and install the latest updates for all your installed Flatpak applications.

Can I browse and install Flathub apps on a Chromebook without using the terminal?

Yes. After setting up Flatpak and Flathub, run 'sudo apt install gnome-software-plugin-flatpak -y' in the terminal. This installs the GNOME Software app store on your Chromebook so you can browse, install, and update Flathub apps visually.