--- title: "Install Any App using Flatpack" slug: "install-any-app-using-flatpack" updated: 2024-10-10T09:33:42Z published: 2024-10-10T09:33:42Z canonical: "help.scalefusion.com/install-any-app-using-flatpack" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.scalefusion.com/llms.txt > Use this file to discover all available pages before exploring further. # Install Any App using Flatpack Use this script to install flatpack and install any application on Linux machine. 1. Copy and save the contents below to a **UTF-8** editor like **notepad++** OR **Sublime Text** in Windows or **gedit** in Ubuntu. 1. If you are using **notepad++** then use the bottom right panel to change the type to **Unix (LF)**. ![](https://cdn.document360.io/175c0eac-012f-4410-bdc5-ac60794f82d8/Images/Documentation/image-CZFUZ1EA.png) 2. Or click [here](https://cdn.document360.io/175c0eac-012f-4410-bdc5-ac60794f82d8/Images/Documentation/Linux_Install%20Any%20App%20using%20Flatpack.txt) to download the file. ```bash #!/bin/bash # Install Flatpak if not already installed if ! command -v flatpak &> /dev/null; then  sudo apt-get update  sudo apt-get install -y flatpak fi # Add Flathub repository if not already added if ! flatpak remote-list | grep -q flathub; then  flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo fi # Note :  You can check available list of applications on this URL https://flathub.org/apps. # List of applications to install. Specify multiple packages in a new line. apps=(  ADD_APP_PACKAGE_NAME ) # Example that installs multiple apps #apps=(  #org.gnome.Calendar  #org.gnome.Geary  #com.github.johnfactotum.Foliate  #com.github.artemanufrij.polarr #) # Install each application for app in "${apps[@]}"; do  flatpak install flathub "$app" -y done ``` 3. In the script, replace the following placeholder: 1. ADD_APP_PACKAGE_NAME: Provide a Flatpack-compatible package name. Find the package name by navigating to [https://flathub.org/apps](https://flathub.org/apps) > clicking on the app name and scroll down to see the package name. 4. Follow [our guide](/docs/deploy-linux-shell-scripts-using-scalefusion#step-1-upload-and-deploy-the-script) to upload & publish the script using Scalefusion Dashboard. > [!CAUTION] > Note: > > 1. Some of the scripts and their contents are sourced from internet and yes, our new friend ChatGPT. > 2. Please validate the scripts on a test machine before deploying them on all your managed devices. > 3. Scalefusion has tested these scripts, however Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the usage of these scripts.