flatpak-installation - Linux


Overview

flatpak-installation is a command-line tool for managing Flatpak installations. It allows users to install, update, remove, and manage Flatpak applications and runtimes.

Syntax

flatpak-installation [OPTIONS] [COMMAND]

Options/Flags

  • -h, –help: Display help and usage information.
  • -v, –verbose: Enable verbose output.
  • -q, –quiet: Suppress all output except errors.
  • -y, –assume-yes: Automatically answer "yes" to all prompts.
  • –user: Install applications to the current user’s home directory instead of the system-wide location.
  • –system: Install applications to the system-wide location.
  • –runtime: Install a specific runtime.
  • –bundle: Install an application bundle.
  • –export: Export a Flatpak installation to a file.
  • –import: Import a Flatpak installation from a file.

Examples

Install an application:

flatpak-installation install org.gnome.Calculator

Update all installed applications:

flatpak-installation update

Remove an application:

flatpak-installation remove org.gnome.Calculator

Install a specific runtime:

flatpak-installation --runtime=org.freedesktop.Platform/x86_64/21.08

Export an installation:

flatpak-installation export org.gnome.Calculator > calculator.flatpak

Common Issues

Unable to install application:

  • Ensure that the appropriate runtime is installed.
  • Check network connectivity and firewall settings.

Application not running:

  • Check if the application has the necessary permissions.
  • Run the application from the command line to check for errors.

Integration

Combine with other commands:

  • flatpak-install: Install Flatpak applications.
  • flatpak-update: Update Flatpak applications.
  • flatpak-remove: Remove Flatpak applications.

Use in scripts:

#!/bin/bash

flatpak-installation update
flatpak-installation install org.gnome.Terminal

Related Commands

  • flatpak
  • flatpak-update
  • flatpak-remove