How to use flatpak

From 清冽之泉
Revision as of 21:43, 28 March 2025 by Mwroot (talk | contribs) (Created page with "《Flatpak 怎么用》 软件遇到网络 fail,第一步就考虑换个国内源。 <syntaxhighlight lang="bash" line> # 安装 flatpak sudo apt install flatpak # Gnome 用户选 sudo apt install gnome-software-plugin-flatpak # 添加官方源 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo # 添加国内源,中科大源 sudo flatpak remote-modify flathub --url=https://mirrors.ustc.edu.cn/flathub # 恢复国内源 sud...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

《Flatpak 怎么用》

软件遇到网络 fail,第一步就考虑换个国内源。

<syntaxhighlight lang="bash" line>

  1. 安装 flatpak

sudo apt install flatpak

  1. Gnome 用户选

sudo apt install gnome-software-plugin-flatpak

  1. 添加官方源

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

  1. 添加国内源,中科大源

sudo flatpak remote-modify flathub --url=https://mirrors.ustc.edu.cn/flathub

  1. 恢复国内源

sudo flatpak remote-modify flathub --url=https://dl.flathub.org/repo

  1. 安装某个软件

flatpak install flathub com.obsproject.Studio

  1. 运行某个软件

flatpak run com.obsproject.Studio

  1. 彻底卸载 flatpak

sudo apt remove --purge flatpak sudo rm -rf ~/.local/share/flatpak ./.cache/flatpak