
11

Ubuntu 现支持暂时 / 永久禁用 snap 软件包自动更新
source link: https://www.51cto.com/article/740069.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.

Ubuntu 现支持暂时 / 永久禁用 snap 软件包自动更新
作者:故渊 2022-11-17 15:10:41
Canonical 今天宣布,允许用户对 snap 格式软件包执行暂时或者永久禁用自动更新。
11 月 17 日消息,Canonical 今天宣布,允许用户对 snap 格式软件包执行暂时或者永久禁用自动更新。在默认情况下,snap 软件包会自动更新,以便于确保你的应用始终处于最新的状态。

但由于 snap 软件包格式的自动更新模式,有时候会导致某款软件出现不兼容、无法使用的情况。好消息是虽然 Canonical 现在允许用户设置临时禁用或者永久禁用,但不支持图形化操作,需要在终端里用命令行方式执行。
IT之家了解到,例如,你想要让 VLC 媒体播放器的 snap 软件包临时禁用自动更新,可以输入:
snap refresh --hold=72h vlc
然后输出结果会是这样的:
General refreshes of "vlc" held until 2022-11-17T12:04:59Z
如果你想要暂时禁用 snap 软件包自动更新,命令为:
snap refresh --hold=48h
如果你想要永久禁用 snap 软件包自动更新,命令为:
snap refresh --hold
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK