salt.modules.flatpak

Manage flatpak packages via Salt

New in version Neon.

depends

flatpak for distribution

salt.modules.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

CLI Example:

salt '*' flatpak.add_remote flathub https://flathub.org/repo/flathub.flatpakrepo
salt.modules.flatpak.install(location, name)

Install the specified flatpak package or runtime from the specified location.

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

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

Returns

The result and output.

Return type

dict

CLI Example:

salt '*' flatpak.install flathub org.gimp.GIMP
salt.modules.flatpak.is_installed(name)

Determine if a package or runtime is installed.

Parameters

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

Returns

True if the specified package or runtime is installed.

Return type

bool

CLI Example:

salt '*' flatpak.is_installed org.gimp.GIMP
salt.modules.flatpak.is_remote_added(remote)

Determines if a remote exists.

Parameters

remote (str) -- The remote's name.

Returns

True if the remote has already been added.

Return type

bool

CLI Example:

salt '*' flatpak.is_remote_added flathub
salt.modules.flatpak.uninstall(pkg)

Uninstall the specified package.

Parameters

pkg (str) -- The package name.

Returns

The result and output.

Return type

dict

CLI Example:

salt '*' flatpak.uninstall org.gimp.GIMP