如何取消固定并删除特定的 Flatpak 包?

如何取消固定并删除特定的 Flatpak 包?

我收到如下消息:

Info: (pinned) runtime org.freedesktop.Platform branch 21.08 is end-of-life, with reason:
   org.freedesktop.Platform 21.08 is no longer receiving fixes and security updates. 
Please update to a supported runtime version.

Info: runtime org.freedesktop.Platform.GL.default branch 21.08 is end-of-life, with reason:
   org.freedesktop.Platform 21.08 is no longer receiving fixes and security updates. 
Please update to a supported runtime version.

我如何强制删除这些过时和未使用的固定 flatpak 依赖项?

答案1

解决方案是先取消固定特定版本。为此,您需要将固定的 flatpak 包的完整“路径”和一些标志传递给“pin”命令,如下所示。

首先,尝试使用一个简单的命令卸载未使用的软件包:

flatpak uninstall --unused

接下来,看看你得到的输出:

These runtimes in installation 'system' are pinned and won't be removed; see flatpak-pin(1):
  runtime/org.freedesktop.Sdk/x86_64/21.08

These runtimes in installation 'user' are pinned and won't be removed; see flatpak-pin(1):
  runtime/org.freedesktop.Platform/x86_64/21.08
Nothing unused to uninstall

注意运行时的完整路径,例如:runtime/org.freedesktop.Sdk/x86_64/21.08

现在,取消固定这些包:

flatpak pin --remove runtime/org.freedesktop.Sdk/x86_64/21.08
# add the --user flag if it is a user package, e.g.:
flatpak pin --user --remove runtime/org.freedesktop.Platform/x86_64/21.08

重要提示:如果该封装是一个user封装,则必须添加--user到 pin 命令中。

最后,再次运行卸载未使用的命令,它们应该会被删除:

flatpak uninstall --unused

相关内容