Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
Flatpak apps come with their own runtime, so they do not depend on the RPM packages of the system, and they run in a sandbox with limited access. That is good for desktop apps, not for server software.
Apps come from remotes (Flatpak repositories). Installs are system-wide (as root, --system, default) or per user (--user). App IDs look like org.gimp.GIMP.
Zo schrijf je het
flatpak [OPTION]... COMMAND [ARGUMENT]...Belangrijkste delen
remote-addNAMEURL- Add a remote (
--if-not-exists). remote-deleteNAME- Remove a remote.
remote-modifyNAME- Change a remote (enable, disable, priority).
remotes- List the remotes.
remote-ls[NAME]- List what a remote offers (
--app,--updates). remote-infoNAMEREF- Details of a remote app.
searchTEXT- Search apps in the remotes.
install[REMOTE]REF- Install an app or runtime.
update[REF]- Update apps and runtimes.
uninstallREF- Remove an app (
--unused= old runtimes). list- Installed apps and runtimes (
--app,--runtime). infoREF- Details of an installed app.
runAPP- Start an app.
ps- Running sandboxes.
killINSTANCE- Stop a running app.
overrideAPP- Change the sandbox permissions of an app.
permissions- Show stored permissions.
history- Show past changes.
repair- Fix a broken installation.
mask,pin- Stop updates of a ref / keep a runtime.
config- Show or change settings (like languages).
make-current,enter,document-*,build*- Other and developer commands.
Opties 19
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 11
$ als gewone gebruiker# als root (of met sudo)
1Install Flatpak
dnf install -y flatpakOn a desktop system it is often installed.
2Add the Flathub remote
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepoSystem-wide remote.
3Add the Red Hat remote
flatpak remote-add --if-not-exists rhel https://flatpaks.redhat.io/rhel.flatpakrepoApps built by Red Hat (needs a registered system / Red Hat login).
4List remotes and their apps
flatpak remotes flatpak remote-ls flathub --app | headWhat can be installed.
5Search and install an app
flatpak search gimp flatpak install -y flathub org.gimp.GIMPRuntimes come too.
6Install only for one user
flatpak install --user -y flathub org.mozilla.firefoxNo root needed; only this user has it.
7Run, list and update
flatpak run org.gimp.GIMP flatpak list --app flatpak update -yUpdates all apps and runtimes.
8Remove an app and old runtimes
flatpak uninstall -y org.gimp.GIMP flatpak uninstall --unused -yFrees disk space.
9Check the sandbox permissions (security)
flatpak info --show-permissions org.mozilla.firefoxShows file system, network and device access.
10Take away home folder access
flatpak override --nofilesystem=home org.mozilla.firefoxTighter sandbox.
11See running apps
flatpak psInstance, PID and app ID.
Niets past bij dit filter.
Let op
- Flatpak is for desktop apps. Install server software with dnf.
- A user installation is not visible for other users.
Bestanden
/var/lib/flatpak/- System installation.
~/.local/share/flatpak/- User installation.
~/.var/app/- App data of the user.
Exitcodes
0 | Done. |
1 | Error. |