[Share Experiences] flatpak一些常用命令 Resolved
Tofloor
poster avatar
deepin
2023-07-18 03:02
Author

经常使用flatpak安装软件,记录下常用命令!

https://www.flatpak.org/setup/Deepin 安装指导网址

https://flathub.org/ 软件库

安装:

sudo apt install flatpak

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

安装主题

flatpak install flathub org.gtk.Gtk3theme.deepin 白
flatpak install flathub org.gtk.Gtk3theme.deepin-dark黑

flatpak remotes //查看所有已添加的仓库列表和等级

flatpak remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub 设置默认源(源名称 --url=https://xxxxxxxx,这个是国内源,速度快,如果有问题可以访问https://mirror.sjtu.edu.cn/docs/flathub获得帮助)

flatpak remotes -d 查看源详细信息

flatpak remote-add     添加源

flatpak remote-delete 删除源  

flatpak remote-ls         列出(远程存储库)

安装软件

flatpak search //flatpak搜索软件,例如搜索kdenlive使用: flatpak search kdenlive 如果搜索的慢可以打开https://flathub.org/搜索,然后直接复制安装命令

flatpak install //flatpak安装,使用上面搜索命令如果找到会出现一条数据,找到Application IDremmina下面的内容进行复制,如flatpak install org.kde.kdenlive

flatpak run org.kde.kdenlive //flatpak运行kdenlive

flatpak list //查看所有已安装的运行时和应用

flatpak update org.kde.kdenlive //flatpak更新kdenlive

flatpak uninstall org.kde.kdenlive //flatpak卸载kdenlive

Flatpak无法在[Linux应用]中直接右键卸载,需要通过flatpak命令行卸载。

因为源问题出错的话用以下命令卸载再重新安装:

sudo apt purge flatpak
sudo mv /var/lib/flatpak /var/lib/flatpak_old

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-18 03:03
#1

like

Reply View the author
青稚
deepin
2023-07-18 03:56
#2

已收藏,备用like

Reply View the author
兆兆嘟嘟嘟
deepin
2023-07-18 20:50
#3

指导网址建议改为https://www.flatpak.org/setup/Deepin

Reply View the author
deepin
2023-07-19 00:39
#4
兆兆嘟嘟嘟

指导网址建议改为https://www.flatpak.org/setup/Deepin

之前感觉使用deepin那个安装方法安装软件会很慢,但现在发现好像关系不大!已经修改!感谢!

Reply View the author