Answer by Sergio Abreu for How to remove old version of installed snaps
1- I like to do it the safe way, manually, one by one!snap list --allCheck out the duplicated ones and I think is logical to remove the lower revision, that indicates it is obsolete.sudo snap remove...
View ArticleAnswer by A. Sahin for How to remove old version of installed snaps
The code @popey shared in their answer actually fails sometimes as some broken packages don't have the version info. So I modified the code to overcome this.#!/bin/bash# Removes old revisions of snaps#...
View ArticleAnswer by mhadidg for How to remove old version of installed snaps
Starting from snap v2.34 and later, you can set the maximum number of snap revisions stored for each package by setting the refresh.retain option—it can only be a number between 2 and 20 and has a...
View ArticleAnswer by Gert van den Berg for How to remove old version of installed snaps
A version of the script from another answer, as a one-liner, without the awk dependency:# snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then snap remove...
View ArticleAnswer by popey for How to remove old version of installed snaps
Here's a short script which will remove all old versions of snaps. This will only keep the current active version, which should recover you some disk space:#!/bin/bash# Removes old revisions of snaps#...
View ArticleAnswer by Tomáš Gavenčiak for How to remove old version of installed snaps
The snapd docs on versions state that the outdated revisions should be automatically removed so that no more than the last two revisions are installed. However, I also saw more than two versions of my...
View ArticleHow to remove old version of installed snaps
I'm newbiew with snap usage, I have few apps installed on my system, something that I notice when run the command df -h I found mounted different versions of the same snap/dev/loop0 143M 143M 0 100%...
View ArticleAnswer by de1 for How to remove old version of installed snaps
In addition to other answers, I found a number of snap files of old versions that did not appear in the output of the snap list -all command.Those were mainly chromium and firefox.So here is a perhaps...
View Article
More Pages to Explore .....