salt.states.flatpak

Management of flatpak packages

Allows the installation and uninstallation of flatpak packages.

New in version Neon.

salt.states.flatpak.add_remote(name, location)

Adds a new location to install flatpak packages from.

Parameters
  • name (str) -- The repository's name.

  • location (str) -- The location of the repository.

Returns

The result and output.

Return type

dict

Example:

add_flathub:
  flatpack.add_remote:
    - name: flathub
    - location: https://flathub.org/repo/flathub.flatpakrepo
salt.states.flatpak.installed(location, name)

Ensure that the named package is installed.

Parameters
  • location (str) -- The location or remote to install the flatpak from.

  • name (str) -- The name of the package or runtime.

Returns

The result and output.

Return type

dict

Example:

install_package:
  flatpack.installed:
    - location: flathub
    - name: gimp
salt.states.flatpak.uninstalled(name)

Ensure that the named package is not installed.

Parameters

name (str) -- The flatpak package.

Returns

The result and output.

Return type

dict

Example:

uninstall_package:
  flatpack.uninstalled:
    - name: gimp