I noticed with disc analyzer that my disk free space is gone down from 974 GB to 971 GB over time on system updates and my snaps folder went from 1 GB to 3 GB.
Do system snaps get larger as system updates get newer?
Old versions of snaps are retained by the system but you can remove them and control what goes on behind the scenes.
The default number of versions retained is 3 but there is a snap option to use in terminal to reduce that to 2:
sudo snap set system refresh.retain=2
and you can write a script to remove old snap revisions.
This reference shows you how.
refresh.retain=2
would mean: current, and only one previous instance, right?
snap list
and snap list --all
and looking at the 'Rev' column. snap list
will show you the latest/currently in use version, or 'revision', or each of your snaps. snap list --all
shows the latest and previous revisions. If you use the refresh.retain=2
option, you should have 2 of each snap: the latest revision, and one previous revision.
Jun 12, 2021 at 21:15