Class
FlatpakInstallation
Constructors
flatpak_installation_new_for_path
Creates a new FlatpakInstallation for the installation at the given path.
flatpak_installation_new_system
Creates a new FlatpakInstallation for the default system-wide installation.
flatpak_installation_new_system_with_id
Creates a new FlatpakInstallation for the system-wide installation id.
since: 0.8
Instance methods
flatpak_installation_add_remote
Adds a new remote object to the set of remotes. This is similar
to flatpak_installation_modify_remote() for non-existing remote
names. However, if the named remote already exists then instead of
modifying it it fails with FLATPAK_ERROR_ALREADY_INSTALLED, or if
if_needed is true it silently succeeds without doing anything.
since: 1.3.4
flatpak_installation_cleanup_local_refs_sync
Remove all OSTree refs from the local flatpak repository which are not
in a deployed state. The next time the underlying OSTree repo is pruned,
objects which were attached to that ref will be removed. This is useful if
you pulled a flatpak refs using flatpak_installation_install_full() and
specified FLATPAK_INSTALL_FLAGS_NO_DEPLOY but then decided not to
deploy the refs later on and want to remove the local refs to prevent them
from taking up disk space. Note that this will not remove the objects
referred to by ref from the underlying OSTree repo, you should use
flatpak_installation_prune_local_repo() to do that.
since: 0.10.0
flatpak_installation_create_monitor
Gets monitor object for the installation. The returned file monitor will
emit the GFileMonitor::changed signal whenever an application or runtime
was installed, uninstalled or updated.
flatpak_installation_drop_caches
Drops all internal (in-memory) caches. For instance, this may be needed to pick up new or changed remotes configured outside this installation instance.
flatpak_installation_fetch_remote_ref_sync_full
Gets the current remote branch of a ref in the remote.
since: 1.3.3
flatpak_installation_fetch_remote_size_sync
Gets information about the maximum amount of data that needs to be transferred to pull the ref from a remote repository, and about the amount of local disk space that is required to check out this commit.
flatpak_installation_get_config
Get a global configuration option for the installation, see
flatpak_installation_set_config_sync() for supported keys.
flatpak_installation_get_current_installed_app
Get the last build of reference name that was installed with
flatpak_installation_install(), or NULL if the reference has
never been installed locally.
flatpak_installation_get_default_languages
Get the default languages used by the installation to decide which subpaths to install of locale extensions. This list may also be used by frontends like GNOME Software to decide which language-specific apps to display. An empty array means that all languages should be installed.
since: 1.5.0
flatpak_installation_get_default_locales
Like flatpak_installation_get_default_languages() but includes territory
information (e.g. en_US rather than en) which may be included in the
extra-languages configuration.
since: 1.5.1
flatpak_installation_get_display_name
Returns the display name of the installation for self.
since: 0.8
flatpak_installation_get_installed_ref
Returns information about an installed ref, such as the available builds, its size, location, etc.
flatpak_installation_get_min_free_space_bytes
Returns the min-free-space config value from the OSTree repository of this installation.
since: 1.1
flatpak_installation_get_no_interaction
Returns the value set with flatpak_installation_set_no_interaction().
since: 1.1.1
flatpak_installation_get_priority
Returns the numeric priority of the installation for self.
since: 0.8
flatpak_installation_get_storage_type
Returns the type of storage of the installation for self.
since: 0.8
flatpak_installation_get_timestamp
Gets the modification time of the installation, based on the file monitored by flatpak_installation_create_monitor(). This can be used to detect when applications or runtimes have been installed, uninstalled, or updated, or when remotes have been added, removed, or modified, to aid cache invalidation.
since: 1.18.0
flatpak_installation_install
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_install()
instead. It has a lot more interesting features.
deprecated: 1.7.0
flatpak_installation_install_bundle
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_install_bundle()
instead. It has a lot more interesting features.
deprecated: 1.7.0
flatpak_installation_install_full
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_install()
instead. It has a lot more interesting features.
deprecated: 1.7.0
flatpak_installation_install_ref_file
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_install_flatpakref()
instead. It has a lot more interesting features.
deprecated: 1.7.0 since: 0.6.10
flatpak_installation_list_installed_refs_for_update
Lists the installed apps and runtimes that have an update available, either from the configured remote or locally available but not deployed (see flatpak_transaction_set_no_deploy()).
flatpak_installation_list_installed_related_refs_sync
Lists all the locally installed refs that are related to ref. These are
things that are interesting to install, update, or uninstall together with
ref. For instance, locale data or debug information.
since: 0.6.7
flatpak_installation_list_pinned_refs
Lists the installed references that are pinned, meaning they will not be
returned by flatpak_installation_list_unused_refs() and won’t be removed
unless explicitly specified for removal.
since: 1.9.1
flatpak_installation_list_remote_refs_sync_full
Lists all the applications and runtimes in a remote.
since: 1.3.3
flatpak_installation_list_remote_related_refs_for_installed_sync
Lists all the available refs on remote_name that are related to ref, and
which are appropriate for the installed version of ref. For example if the
installed version of org.videolan.VLC has a related ref of
org.videolan.VLC.Plugin.bdj//3-19.08 and the remote version of VLC has a
related ref of org.videolan.VLC.Plugin.bdj//3-20.08, this function will only
return the 3-19.08 branch.
since: 1.11.1
flatpak_installation_list_remote_related_refs_sync
Lists all the available refs on remote_name that are related to
ref, and the subpaths to use. These are things that are
interesting to install, update, or uninstall together with
ref. For instance, locale data or debug information.
since: 0.6.7
flatpak_installation_list_remotes
Lists the static remotes, in priority (highest first) order. Remotes with the same priority are ordered by name in ascending order.
flatpak_installation_list_remotes_by_type
Lists only the remotes whose type is included in the types argument.
flatpak_installation_list_unused_refs
Lists the installed references that are not ‘used’.
since: 1.1.2
flatpak_installation_list_unused_refs_with_options
Like flatpak_installation_list_unused_refs() but supports an extensible set
of options as well as an metadata_injection parameter. The following are
currently defined:.
since: 1.9.1
flatpak_installation_prune_local_repo
Remove all orphaned OSTree objects from the underlying OSTree repo in
self.
since: 0.10.0
flatpak_installation_remove_local_ref_sync
Remove the OSTree ref given by remote_name:ref from the local flatpak
repository. The ref must not be currently deployed; attempting to remove
a deployed ref will return an error. Use flatpak_installation_uninstall_full()
to remove deployed refs. The next time the underlying OSTree repo is pruned,
objects which were attached to that ref will be removed. This is useful if you
pulled a flatpak ref using flatpak_installation_install_full() and
specified FLATPAK_INSTALL_FLAGS_NO_DEPLOY but then decided not to
deploy the ref later on and want to remove the local ref to prevent it
from taking up disk space. Note that this will not remove the objects
referred to by ref from the underlying OSTree repo, you should use
flatpak_installation_prune_local_repo() to do that.
since: 0.10.0
flatpak_installation_run_triggers
Run the trigger commands to update the files exported by the apps in
self. Should be used after one or more app install, upgrade or
uninstall operations with the FLATPAK_INSTALL_FLAGS_NO_TRIGGERS,
FLATPAK_UPDATE_FLAGS_NO_TRIGGERS or FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS
flags set.
since: 1.0.3
flatpak_installation_set_config_sync
Set a global configuration option for the installation, currently
the only supported keys are languages, which is a semicolon-separated
list of language codes like "sv;en;pl", or "" to mean all languages,
and extra-languages, which is a semicolon-separated list of locale
identifiers like "en;en_DK;zh_HK.big5hkscs;uz_UZ.utf8@cyrillic".
flatpak_installation_set_no_interaction
This method can be used to prevent interactive authorization dialogs to appear
for operations on self. This is useful for background operations that are not
directly triggered by a user action.
since: 1.1.1
flatpak_installation_uninstall
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_uninstall()
instead. It has a lot more interesting features.
deprecated: 1.7.0
flatpak_installation_uninstall_full
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_uninstall()
instead. It has a lot more interesting features.
deprecated: 1.7.0 since: 0.11.8
flatpak_installation_update
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_update()
instead. It has a lot more interesting features.
deprecated: 1.7.0
flatpak_installation_update_appstream_full_sync
Updates the local copy of appstream for remote_name for the specified arch.
flatpak_installation_update_appstream_sync
Updates the local copy of appstream for remote_name for the specified arch.
If you need progress feedback, use flatpak_installation_update_appstream_full_sync().
flatpak_installation_update_full
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_update()
instead. It has a lot more interesting features.
deprecated: 1.7.0
flatpak_installation_update_remote_sync
Updates the local configuration of a remote repository by fetching the related information from the summary file in the remote OSTree repository and committing the changes to the local installation.
since: 0.6.13
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.