Linux command
flatpak-install 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install an application
flatpak install [application_id]
Install from a specific remote
flatpak install [flathub] [org.gnome.gedit]
Install for current user
flatpak install --user [application_id]
Install from a .flatpakref
flatpak install --from [https://example.com/app.flatpakref]
Install from a local bundle
flatpak install --bundle [path/to/app.flatpak]
Install or update
flatpak install --or-update [application_id]
Install without confirmation
flatpak install -y [application_id]
说明
flatpak install installs applications or runtimes from Flatpak repositories. The REF argument specifies what to install using the format (app|runtime)/ID/ARCH/BRANCH. Typically only the application ID is needed; other parts are matched automatically or prompt for selection when ambiguous. Installation sources include configured remotes (like Flathub), .flatpakref files (application description URLs), .flatpak bundle files, or OCI images. By default, applications install system-wide; use --user for per-user installation. Dependencies (runtimes, extensions) are automatically resolved and installed. The command prompts for confirmation showing what will be downloaded and installed.
参数
- -u, --user
- Install in per-user installation directory.
- --system
- Install in default system-wide installation.
- --installation=_NAME_
- Install in a specific system-wide installation.
- --reinstall
- Uninstall first if already installed.
- --or-update
- Update silently if already installed.
- --bundle
- Treat location as a single-bundle .flatpak file.
- --from
- Treat location as a .flatpakref application description.
- -y, --assumeyes
- Automatically answer yes to all prompts.
- --no-deploy
- Download but do not deploy.
- --no-pull
- Deploy from local cache without downloading.
- -v, --verbose
- Print debug information.
- -h, --help
- Show help and exit.
FAQ
What is the flatpak-install command used for?
flatpak install installs applications or runtimes from Flatpak repositories. The REF argument specifies what to install using the format (app|runtime)/ID/ARCH/BRANCH. Typically only the application ID is needed; other parts are matched automatically or prompt for selection when ambiguous. Installation sources include configured remotes (like Flathub), .flatpakref files (application description URLs), .flatpak bundle files, or OCI images. By default, applications install system-wide; use --user for per-user installation. Dependencies (runtimes, extensions) are automatically resolved and installed. The command prompts for confirmation showing what will be downloaded and installed.
How do I run a basic flatpak-install example?
Run `flatpak install [application_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --user do in flatpak-install?
Install in per-user installation directory.