2

Flatpak 使用小记

 4 weeks ago
source link: https://jiajunhuang.com/articles/2024_03_19-flatpak.md.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Flatpak 使用小记

一般的软件,都是直接用apt安装,不过桌面上有一些软件例如浏览器,是更新很频繁的,apt仓库的基本都过时了老旧了,因此有了 flatpak 和 snap 这样的软件,不过我不是很喜欢snap,正好今天尝试了一下 flatpak,以Ubuntu/Debian为例。

安装 Flatpak

$ sudo apt install flatpak

如果是比较老版本的OS,那么可以选择用PPA:

$ sudo add-apt-repository ppa:flatpak/stable
$ sudo apt update
$ sudo apt install flatpak

安装Flatpak源

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

如果在国内,可以替换为国内镜像源:

$ sudo flatpak remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub

然后重启一下系统,再次进入之后,就可以用 flatpak 安装软件了,例如安装Firefox:

$ flatpak install flathub org.mozilla.firefox
$ flatpak run org.mozilla.firefox

Cookie 中的secure和httponly属性 常见的软件架构套路 Google Ads使用体验 Go的custom import path 如何挖掘二级子域名? Go Module 简明教程 写了一个Telegram Bot:自动化分享高质量内容 为什么我选择放弃运营微信公众号? ArchLinux 怎么降级 package ? Vim打开很慢,怎么找出最慢的插件?怎么解决? Web后端工程师进阶指南(2018) How to implement fork syscall in Golang? macOS ansible 遇到 rsync: --chown=www-data: unknown option 关于运营的思考-运营要怎么做? Python中实现单例模式的n种方式和原理



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK