Flatpak 命令說明

  1. 安裝 flatpak 套件。
    [root@kvm10 ~]# dnf install flatpak
    
  2. flatpak 輔助說明。
    [root@kvm10 ~]# flatpak --help
    Usage:
      flatpak [OPTION…] COMMAND
    
    Builtin Commands:
     Manage installed applications and runtimes
      install                Install an application or runtime
      update                 Update an installed application or runtime
      uninstall              Uninstall an installed application or runtime
      mask                   Mask out updates and automatic installation
      pin                    Pin a runtime to prevent automatic removal
      list                   List installed apps and/or runtimes
      info                   Show info for installed app or runtime
      history                Show history
      config                 Configure flatpak
      repair                 Repair flatpak installation
      create-usb             Put applications or runtimes onto removable media
      preinstall             Install flatpaks that are part of the operating system
    
     Find applications and runtimes
      search                 Search for remote apps/runtimes
    
     Manage running applications
      run                    Run an application
      override               Override permissions for an application
      make-current           Specify default version to run
      enter                  Enter the namespace of a running application
      ps                     Enumerate running applications
      kill                   Stop a running application
    
     Manage file access
      documents              List exported files
      document-export        Grant an application access to a specific file
      document-unexport      Revoke access to a specific file
      document-info          Show information about a specific file
    
     Manage dynamic permissions
      permissions            List permissions
      permission-remove      Remove item from permission store
      permission-set         Set permissions
      permission-show        Show app permissions
      permission-reset       Reset app permissions
    
     Manage remote repositories  管理迼端套件庫的指令
      remotes                List all configured remotes
      remote-add             Add a new remote repository (by URL)
                             加一新遠端套件庫
      remote-modify          Modify properties of a configured remote
      remote-delete          Delete a configured remote
      remote-ls              List contents of a configured remote
      remote-info            Show information about a remote app or runtime
    
     Build applications
      build-init             Initialize a directory for building
      build                  Run a build command inside the build dir
      build-finish           Finish a build dir for export
      build-export           Export a build dir to a repository
      build-bundle           Create a bundle file from a ref in a local repository
      build-import-bundle    Import a bundle file
      build-sign             Sign an application or runtime
      build-update-repo      Update the summary file in a repository
      build-commit-from      Create new commit based on existing ref
      repo                   Show information about a repo
    
    Help Options:
      -h, --help              Show help options
    
    Application Options:
      --version               Print version information and exit
      --default-arch          Print default arch and exit
      --supported-arches      Print supported arches and exit
      --gl-drivers            Print active gl drivers and exit
      --installations         Print paths for system installations and exit
      --print-updated-env     Print the updated environment needed to run flatpaks
      --print-system-only     Only include the system installation with --print-updated-env
      -v, --verbose           Show debug information, -vv for more detail
      --ostree-verbose        Show OSTree debug information
    
  3. flatpak 管理遠端套件庫的指令 remote-add 增加新的套件庫命令輔助說明:
    [root@kvm10 ~]# flatpak remote-add --help
    
    Note that the directories
    
    '/var/lib/flatpak/exports/share'
    '/root/.local/share/flatpak/exports/share'
    
    are not in the search path set by the XDG_DATA_DIRS environment variable, so
    applications installed by Flatpak may not appear on your desktop until the
    session is restarted.
    
    Usage:
      flatpak remote-add [OPTION…] NAME LOCATION - Add a remote repository
    
    Help Options:
      -h, --help                           Show help options
    
    Application Options:
      --no-gpg-verify                      Disable GPG verification
      --no-enumerate                       Mark the remote as don't enumerate
      --no-use-for-deps                    Mark the remote as don't use for deps
      --prio=PRIORITY                      Set priority (default 1, higher is more prioritized)
      --subset=SUBSET                      The named subset to use for this remote
      --title=TITLE                        A nice name to use for this remote
      --comment=COMMENT                    A one-line comment for this remote
      --description=DESCRIPTION            A full-paragraph description for this remote
      --homepage=URL                       URL for a website for this remote
      --icon=URL                           URL for an icon for this remote
      --default-branch=BRANCH              Default branch to use for this remote
      --collection-id=COLLECTION-ID        Collection ID
      --gpg-import=FILE                    Import GPG key from FILE (- for stdin)
      --filter=FILE                        Set path to local filter FILE
      --disable                            Disable the remote
      --authenticator-name=NAME            Name of authenticator
      --authenticator-option=KEY=VALUE     Authenticator option
      --authenticator-install              Autoinstall authenticator
      --no-authenticator-install           Don't autoinstall authenticator
      --no-follow_redirect                 Don't follow the redirect set in the summary file
      -u, --user                           Work on the user installation
                                           指定只有某使用者可使用該套件庫
      --system                             Work on the system-wide installation (default)
      --installation=NAME                  Work on a non-default system-wide installation
      --if-not-exists                      Do nothing if the provided remote exists
      --from                               LOCATION specifies a configuration file, not the repo location
      -v, --verbose                        Show debug information, -vv for more detail
      --ostree-verbose                     Show OSTree debug information