我想在更新我的快照包时查看所有日志和更改,就像sudo apt update && sudo apt upgrade
. 我过去sudo snap refresh
常常手动升级它们,但没有开关可以查看更多日志并应用更改。
Download snap "snapd" (19993) from channel "latest/stable" 17% 1.74MB/s 17.0s
Download snap "snapd" (19993) from channel "latest/stable" 22% 1.48MB/s 18.7s
Download snap "snapd" (19993) from channel "latest/stable" 22% 1.33MB/s 20.8s
Download snap "snapd" (19993) from channel "latest/stable" 22% 1.03MB/s 26.8s
Download snap "snapd" (19993) from channel "latest/stable" 48% 656kB/s 28.2s
Download snap "snapd" (19993) from channel "latest/stable" 53% 689kB/s 24.6s
Download snap "snapd" (19993) from channel "latest/stable" 59% 748kB/s 19.5s
Download snap "snapd" (19993) from channel "latest/stable" 84% 948kB/s 5.90s
Download snap "snapd" (19993) from channel "latest/stable" 92% 984kB/s 3.03s
2023-08-22T22:09:50+03:30 INFO Waiting for automatic snapd restart...
snapd 2.60.2 from Canonical✓ refreshed
命令的输出sudo snap refresh --help
。
[refresh command options]
--color=[auto|never|always] Use a little bit of color to highlight some things. (default: auto)
--unicode=[auto|never|always] Use a little bit of Unicode to improve legibility. (default: auto)
--abs-time Display absolute times (in RFC 3339 format). Otherwise, display relative
times up to 60 days, then YYYY-MM-DD.
--no-wait Do not wait for the operation to finish but just print the change id.
--channel= Use this channel instead of stable
--edge Install from the edge channel
--beta Install from the beta channel
--candidate Install from the candidate channel
--stable Install from the stable channel
--devmode Put snap in development mode and disable security confinement
--jailmode Put snap in enforced confinement mode
--classic Put snap in classic mode and disable security confinement
--amend Allow refresh attempt on snap unknown to the store
--revision= Refresh to the given revision
--cohort= Refresh the snap into the given cohort
--leave-cohort Refresh the snap out of its cohort
--list Show the new versions of snaps that would be updated with the next refresh
--time Show auto refresh information but do not perform a refresh
--ignore-validation Ignore validation by other snaps blocking the refresh
--transaction=[all-snaps|per-snap] Have one transaction per-snap or one for all the specified snaps (default:
per-snap)
--hold= Hold refreshes for a specified duration (or forever, if no value is
specified)
--unhold Remove refresh hold
我应该怎么办?
snap changes
(不是“快速刷新更改”)将列出最近的安装、刷新和删除。“最近”是指同一会话的 snapd。以下示例显示了今天的删除、刷新和安装操作:
记下身份证号码。如果我们想要额外的详细信息,我们可以使用该数字:
目前只能从 snapd 获取安装、刷新和删除信息。它没有记录在日志或系统日志中。但是,当刷新不可用时,情况正好相反:
snap changes
保持静默,但会记录检查。