「snap」- 应用程序降级

查看历史版本

通过 API 查看

curl -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/anbox # | jq
# "anbox" is the name of the snap package. change it to what you want.

通过 CMD 查看

snap list “certbot” –all

其他查看方法

通过缓存:ls -lah /var/lib/snapd/snaps/

注意,snap 并不是显示历史版本的 snap 包,我们需要找到其他方式来获取旧包的版本

How to get snap download url – Ask Ubuntu
ubuntu – Install specific previous version of package using snap? – Unix & Linux Stack Exchange

特定版本回退

How to run a previous version of a snap package – Ask Ubuntu
How to list all available revisions on the snap store – Ask Ubuntu

snap revert intellij-idea-ultimate # 上个版本
snap revert intellij-idea-ultimate –revision 212 # 特定版本

snap download certbot

禁用自动升级

How to disable autorefresh in snap – Ask Ubuntu

Managing updates | https://snapcraft.io/docs/managing-updates

snap set core experimental.refresh-app-awareness=true # disable updates while the application is running.
snap set system refresh.timer=sat5,23:00-01:00 # don’t want it to update during the weekdays

snap refresh –hold=’720h’ <snap1> <snap2> # hold all updates until after my big presentation

# If no duration is specified, the time duration defaults to forever.
snap refresh –hold <snap1> <snap2>
snap refresh –hold=forever <snap1> <snap2>