Skip to content

Instantly share code, notes, and snippets.

@valyakuttan
Last active August 18, 2023 17:15
Show Gist options
  • Save valyakuttan/bd831c08c25115b92cdcb801be706fe1 to your computer and use it in GitHub Desktop.
Save valyakuttan/bd831c08c25115b92cdcb801be706fe1 to your computer and use it in GitHub Desktop.
flatpak Command Reference

Frequently used flatpak commands

  • Location of flatpak configuration files and apps data

    • Applications store user data in $HOME/.var/app

    • User level configuration is storred in $HOME/.local/share/flatpak

    • System wide configuration is storred in /var/lib/flatpak

  • Show existing overrides of an <app>

    
    $ flatpak override --show <app>
    
    
  • Uninstall unused runtimes and apps

    
    $ flatpak uninstall --unused
    
    
  • Repair a flatpak installation

    
    $ sudo flatpak repair
    
    
  • Run bash instead of one listed in the <app> metadata

    
    $ flatpak run --command=bash <app>
    
    
  • Allow <app> to access the /tmp filesystem

    
    $ flatpak override --show <app>
    
    
  • Remove <app>'s access to the /tmp filesystem

    
    $ flatpak override --user \ 
        --nofilesystem=/tmp com.visualstudio.code
    
    
  • Uninstall user installation of <app>

    
    $ flatpak uninstall --user <app>
    
    
  • Uninstall system wide installation of <app>

    
    $ flatpak uninstall <app>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment