mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(kb/flatpak): revise article
This commit is contained in:
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -161,6 +161,7 @@
|
|||||||
"filebeat",
|
"filebeat",
|
||||||
"fileglob",
|
"fileglob",
|
||||||
"firewalld",
|
"firewalld",
|
||||||
|
"flathub",
|
||||||
"flatpak",
|
"flatpak",
|
||||||
"fluentd",
|
"fluentd",
|
||||||
"foris",
|
"foris",
|
||||||
|
|||||||
@@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
## TL;DR
|
## TL;DR
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Setup</summary>
|
||||||
|
|
||||||
|
```sh
|
||||||
|
apt install 'flatpak'
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Usage</summary>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# List installed applications and runtimes.
|
# List installed applications and runtimes.
|
||||||
flatpak list
|
flatpak list
|
||||||
@@ -9,62 +21,62 @@ flatpak list --app
|
|||||||
|
|
||||||
# List remotes.
|
# List remotes.
|
||||||
flatpak remotes
|
flatpak remotes
|
||||||
|
flatpak remotes --user
|
||||||
|
|
||||||
# Add remotes.
|
# Add remotes.
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --if-not-exists 'flathub' 'https://flathub.org/repo/flathub.flatpakrepo'
|
||||||
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --user --if-not-exists 'flathub' 'https://flathub.org/repo/flathub.flatpakrepo'
|
||||||
|
|
||||||
# Search for applications.
|
# Search for applications.
|
||||||
flatpak search vscode
|
flatpak search 'vscode'
|
||||||
|
|
||||||
# Install applications.
|
# Install applications.
|
||||||
flatpak install fedora org.stellarium.Stellarium
|
flatpak install 'someRemote' 'org.stellarium.Stellarium'
|
||||||
flatpak install --user flathub com.visualstudio.code-oss
|
flatpak install --user 'flathub' 'com.visualstudio.code-oss'
|
||||||
flatpak install https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref
|
flatpak install 'https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref'
|
||||||
|
|
||||||
# Run applications.
|
# Run applications.
|
||||||
flatpak run org.gimp.GIMP
|
flatpak run 'org.gimp.GIMP'
|
||||||
|
|
||||||
# Update applications.
|
# Update applications.
|
||||||
flatpak update
|
flatpak update
|
||||||
|
|
||||||
# Uninstall applications.
|
# Uninstall applications.
|
||||||
flatpak uninstall org.stellarium.Stellarium
|
flatpak uninstall 'org.stellarium.Stellarium'
|
||||||
flatpak uninstall --unused
|
flatpak uninstall --unused
|
||||||
flatpak uninstall --delete-data edu.berkeley.BOINC
|
flatpak uninstall --delete-data 'edu.berkeley.BOINC'
|
||||||
|
|
||||||
# Remove remotes.
|
# Remove remotes.
|
||||||
flatpak remote-delete flathub
|
flatpak remote-delete 'flathub'
|
||||||
|
|
||||||
# Fix inconsitencies.
|
# Fix inconsistencies.
|
||||||
flatpak repair
|
flatpak repair
|
||||||
|
|
||||||
# Reset applications' permissions.
|
# Reset applications' permissions.
|
||||||
flatpak permission-reset org.gimp.GIMP
|
flatpak permission-reset 'org.gimp.GIMP'
|
||||||
|
|
||||||
# List operations.
|
# List operations.
|
||||||
flatpak history
|
flatpak history
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## Further readings
|
## Further readings
|
||||||
|
|
||||||
- [Using Flatpak] getting started guide on the official [documentation]
|
- [Using Flatpak] getting started guide on the official [documentation].
|
||||||
|
|
||||||
[documentation]: https://docs.flatpak.org/en/latest/
|
### Sources
|
||||||
[using flatpak]: https://docs.flatpak.org/en/latest/using-flatpak.html
|
|
||||||
|
|
||||||
## Sources
|
|
||||||
|
|
||||||
All the references in the [further readings] section, plus the following:
|
|
||||||
|
|
||||||
- [How to clean up Flatpak apps to clear disk space]
|
- [How to clean up Flatpak apps to clear disk space]
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
References
|
Reference
|
||||||
|
═╬═Time══
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- In-article sections -->
|
<!-- Upstream -->
|
||||||
[further readings]: #further-readings
|
[documentation]: https://docs.flatpak.org/en/latest/
|
||||||
|
[using flatpak]: https://docs.flatpak.org/en/latest/using-flatpak.html
|
||||||
|
|
||||||
<!-- Others -->
|
<!-- Others -->
|
||||||
[how to clean up flatpak apps to clear disk space]: https://www.debugpoint.com/2021/10/clean-up-flatpak/
|
[how to clean up flatpak apps to clear disk space]: https://www.debugpoint.com/2021/10/clean-up-flatpak/
|
||||||
|
|||||||
Reference in New Issue
Block a user