mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
parent
a8347fa90c
commit
d5d10d0d83
@ -3,18 +3,20 @@
|
||||
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
[#]: reviewer: "wxy"
|
||||
[#]: publisher: "wxy"
|
||||
[#]: url: "https://linux.cn/article-15408-1.html"
|
||||
|
||||
如何在 Linux 中更新 Flatpak 软件包
|
||||
======
|
||||
|
||||
![][0]
|
||||
|
||||
我相信几乎所有的 Linux 用户都会保持他们系统的更新。
|
||||
|
||||
但这种更新通常是针对默认的[包管理器][1]。例如,[更新 Ubuntu][2] 往往意味着更新所有的 APT 软件包。
|
||||
但这种更新通常是针对默认的 [包管理器][1]。例如,[更新 Ubuntu][2] 往往意味着更新所有的 APT 软件包。
|
||||
|
||||
然而,还有其他的打包格式,如 Snap 和 Flatpak。Snap 应用程序会自动更新,但 Flatpak 的不会。
|
||||
然而,还有其他的打包格式,如 Snap 和 Flatpak。Snap 应用程序会自动更新,但 Flatpak 不会。
|
||||
|
||||
那么你如何更新 Flatpak 软件包呢?好吧,你可以用这个命令来更新所有已安装和可更新的 Flatpak 包:
|
||||
|
||||
@ -43,9 +45,9 @@ flatpak update
|
||||
flatpak update
|
||||
```
|
||||
|
||||
![3. update flatpak packages in linux][3]
|
||||
![update flatpak packages in linux][3]
|
||||
|
||||
你只需输入 “Y” 并按下回车键,就能搞定每一个更新。
|
||||
你只需输入 `Y` 并按下回车键,就能搞定每一个更新。
|
||||
|
||||
#### 更新特定的 Flatpak 包
|
||||
|
||||
@ -55,7 +57,7 @@ flatpak update
|
||||
flatpak update
|
||||
```
|
||||
|
||||
![3. update flatpak packages in linux][4]
|
||||
![update flatpak packages in linux][4]
|
||||
|
||||
从输出中复制你要更新的软件包的名称。在以下命令中使用软件包的名称:
|
||||
|
||||
@ -63,15 +65,15 @@ flatpak update
|
||||
flatpak update package_name
|
||||
```
|
||||
|
||||
例如,如果你想更新Telegram,下面的命令可以完成这项工作:
|
||||
例如,如果你想更新 Telegram,下面的命令可以完成这项工作:
|
||||
|
||||
```
|
||||
flatpak update org.telegram.desktop
|
||||
```
|
||||
|
||||
![4. update specific package in flatpak][5]
|
||||
![update specific package in flatpak][5]
|
||||
|
||||
这就完成了
|
||||
这就完成了。
|
||||
|
||||
### 方法 2:从软件中心更新 Flatpak 应用
|
||||
|
||||
@ -87,11 +89,11 @@ sudo apt install gnome-software-plugin-flatpak
|
||||
|
||||
从系统菜单中打开这个新的软件中心:
|
||||
|
||||
![1. open software center in ubuntu][6]
|
||||
![open software center in ubuntu][6]
|
||||
|
||||
进入`更新`页面,你会发现过时的软件包列表。这包括 APT 和 Flatpak 软件包。
|
||||
进入“<ruby>更新<rt>Update</rt></ruby>”页面,你会发现过时的软件包列表。这包括 APT 和 Flatpak 软件包。
|
||||
|
||||
![2. update flatpak from software center][7]
|
||||
![update flatpak from software center][7]
|
||||
|
||||
在这里,你可以一次更新所有的软件包,或者你可以有选择地更新什么。
|
||||
|
||||
@ -112,7 +114,7 @@ via: https://itsfoss.com/update-flatpak/
|
||||
作者:[Sagar Sharma][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
@ -120,8 +122,9 @@ via: https://itsfoss.com/update-flatpak/
|
||||
[b]: https://github.com/lkxed
|
||||
[1]: https://itsfoss.com/package-manager/
|
||||
[2]: https://itsfoss.com/update-ubuntu/
|
||||
[3]: https://itsfoss.com/wp-content/uploads/2022/12/3.-update-flatpak-packages-in-linux.png
|
||||
[4]: https://itsfoss.com/wp-content/uploads/2022/12/3.-update-flatpak-packages-in-linux.png
|
||||
[5]: https://itsfoss.com/wp-content/uploads/2022/12/4.-update-specific-package-in-flatpak.png
|
||||
[6]: https://itsfoss.com/wp-content/uploads/2022/12/1.-open-software-center-in-ubuntu.png
|
||||
[7]: https://itsfoss.com/wp-content/uploads/2022/12/2.-update-flatpak-from-software-center.png
|
||||
[3]: https://itsfoss.com/content/images/wordpress/2022/12/3.-update-flatpak-packages-in-linux.png
|
||||
[4]: https://itsfoss.com/content/images/wordpress/2022/12/3.-update-flatpak-packages-in-linux.png
|
||||
[5]: https://itsfoss.com/content/images/wordpress/2022/12/4.-update-specific-package-in-flatpak.png
|
||||
[6]: https://itsfoss.com/content/images/wordpress/2022/12/1.-open-software-center-in-ubuntu.png
|
||||
[7]: https://itsfoss.com/content/images/wordpress/2022/12/2.-update-flatpak-from-software-center.png
|
||||
[0]: https://img.linux.net.cn/data/attachment/album/202301/03/154131lop17rnnrkiprkl7.jpg
|
Loading…
Reference in New Issue
Block a user