Public
Authored by Kevin Turner

remove inactive snaps

Does snap list --all show a bunch of old disabled versions of things?

They're there to give you the option of rolling back a version, but maybe you want to remove them. Here's a script for that.

Tested in Ubuntu 19.10 (eoan).

This uses the JSON API, after noticing previous scripts were broken when the command-line output changed the columns between versions.

See also Ask Ubuntu: How to remove disabled snap packages?

Edited
remove-disabled-snaps.sh 1.28 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment