Howto flatpak: Difference between revisions
No edit summary |
Mandulete1 (talk | contribs) |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= install = | |||
install flatpak on archlinux: | |||
sudo pacman -Sy flatpak --noconfirm | |||
for additional distributions can be found below: | |||
https://flatpak.org/setup/ | |||
= repositories = | |||
add the flathub repository: | |||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |||
add the flathub beta repository: | |||
flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo | |||
show flatpak repos: | |||
flatpak remotes | |||
disable flatpak repo: | |||
flatpak remote-modify --disable flathub | |||
enable flatpak repo: | |||
flatpak remote-modify --enable flathub | |||
look for flatpak app associated commit id: | |||
flatpak remote-info --log remote app-name | |||
deploy specific commit id: | |||
flatpak update --commit=commit app-name | |||
= basic commands = | |||
search for apps in flatpak: | |||
flatpak search libreoffice | |||
install an app: | |||
flatpak install <remote> <application> | |||
installing kdenlive: | |||
flatpak install flathub org.kde.kdenlive | |||
list installed apps: | list installed apps: | ||
flatpak list | flatpak list | ||
Line 15: | Line 44: | ||
repair flatpak apps: | repair flatpak apps: | ||
flatpak repair | flatpak repair | ||
show flatpak command history: | |||
flatpak history | |||
= update apps = | |||
update appstream data for remotes: | |||
flatpak update --appstream | |||
update all apps: | update all apps: | ||
flatpak update | flatpak update | ||
update individual apps: | |||
flatpak update <application> | |||
view | prevent automatic and manual updates to a runtime or application: | ||
flatpak | flatpak mask libreoffice | ||
remove the mask from app: | |||
flatpak | flatpak mask --remove libreoffice | ||
= flatpak permissions = | |||
install flatseal to view flatpak apps permissions: | |||
flatpak install flathub com.github.tchx84.Flatseal | |||
= fix archlinux error = | |||
i got this error on archlinux when trying to run obs via flatpak: | |||
bwrap: can't make symlink at /var/run: File exists | |||
/media which is normally a real directory on archlinux to be a symlink to /var/run/media, replacing /media with a symlink to /run/media seems to fix the issue, before running the following command make sure you don't have any external drive mounted. | |||
mount |grep media | |||
if you see any output with previous command, umount the device, then proceed. | |||
rm -rf /media | |||
rm -rf /var/run/media | |||
mkdir /run/media | |||
ln -s /run/media /media | |||
= references = | |||
* https://www.booleanworld.com/building-cross-distribution-linux-applications-flatpak/ |
Latest revision as of 19:03, 18 January 2023
install
install flatpak on archlinux:
sudo pacman -Sy flatpak --noconfirm
for additional distributions can be found below:
https://flatpak.org/setup/
repositories
add the flathub repository:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
add the flathub beta repository:
flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
show flatpak repos:
flatpak remotes
disable flatpak repo:
flatpak remote-modify --disable flathub
enable flatpak repo:
flatpak remote-modify --enable flathub
look for flatpak app associated commit id:
flatpak remote-info --log remote app-name
deploy specific commit id:
flatpak update --commit=commit app-name
basic commands
search for apps in flatpak:
flatpak search libreoffice
install an app:
flatpak install <remote> <application>
installing kdenlive:
flatpak install flathub org.kde.kdenlive
list installed apps:
flatpak list
list all installed flatpak with installation type, size and application id:
flatpak --columns=app,name,size,installation list
view all the installed flatpak with name and installed size:
flatpak --columns=name,size list
uninstall all apps:
flatpak uninstall --all
uninstall flatpak packages that are not in use:
flatpak uninstall --unused
uninstall and delete everything related to flatpak:
flatpak uninstall --all --delete-data
uninstall a specific flatpak package:
flatpak uninstall <application ID>
repair flatpak apps:
flatpak repair
show flatpak command history:
flatpak history
update apps
update appstream data for remotes:
flatpak update --appstream
update all apps:
flatpak update
update individual apps:
flatpak update <application>
prevent automatic and manual updates to a runtime or application:
flatpak mask libreoffice
remove the mask from app:
flatpak mask --remove libreoffice
flatpak permissions
install flatseal to view flatpak apps permissions:
flatpak install flathub com.github.tchx84.Flatseal
fix archlinux error
i got this error on archlinux when trying to run obs via flatpak:
bwrap: can't make symlink at /var/run: File exists
/media which is normally a real directory on archlinux to be a symlink to /var/run/media, replacing /media with a symlink to /run/media seems to fix the issue, before running the following command make sure you don't have any external drive mounted.
mount |grep media
if you see any output with previous command, umount the device, then proceed.
rm -rf /media rm -rf /var/run/media mkdir /run/media ln -s /run/media /media