← 返回命令列表

Linux command

flatpak 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run

flatpak run com.example.app

Install

flatpak install flathub com.example.app

List

flatpak list --app

Update

flatpak update

Add

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Remove

flatpak remove com.example.app

Remove

flatpak remove --unused

Example

flatpak info com.example.app

说明

flatpak is a tool for managing applications and their associated runtimes. It enables building and distributing applications independently from the host system while providing sandbox isolation at runtime. The system supports both system-wide and per-user installation modes.

参数

-h, --help
Show help options and exit
-v, --verbose
Show debug information (use -vv for more detail)
--version
Print version information and exit
--default-arch
Print the default architecture and exit
--supported-arches
Print supported architectures in order of priority
--gl-drivers
Print the list of active GL drivers
--installations
Print paths of system installations
--print-updated-env
Print environment variables needed to use flatpak
--user
Work on per-user installation only
--system
Work on system-wide installation (default)
--installation=_NAME_
Work on the specified installation (from /etc/flatpak/installations.d/)

FAQ

What is the flatpak command used for?

flatpak is a tool for managing applications and their associated runtimes. It enables building and distributing applications independently from the host system while providing sandbox isolation at runtime. The system supports both system-wide and per-user installation modes.

How do I run a basic flatpak example?

Run `flatpak run com.example.app` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --help do in flatpak?

Show help options and exit