Support removing all unused revisions

Bug #1657107 reported by Zygmunt Krynicki
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
John Lenton

Bug Description

Something like this:

$ snap remove --unused <snap>

That would remove old revisions that are currently unused by the given snap.

As an implementation note, "unused" means not current internally. If the snap is disabled, all revisions will be currently disabled, but the current one should remain in the system if --unused is provided.

Some background here: https://bugs.launchpad.net/snapd/+bug/1555217

This bug is a clone of the following github issue: https://github.com/snapcore/snapd/issues/2484

Zygmunt Krynicki (zyga)
description: updated
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'm marking this as triaged although I filed it myself. John I've assigned this to you for evaluation, if you feel we don't want to do this please close the bug with WONTFIX.

Changed in snapd:
status: New → Triaged
assignee: nobody → John Lenton (chipaca)
Revision history for this message
John Lenton (chipaca) wrote :

Note this is easy to do wrong in the client, because TOCTOU.

Michael Vogt (mvo)
Changed in snapd:
importance: Undecided → Low
importance: Low → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.