show the snap app size info

Bug #1661533 reported by XiaoGuo, Liu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Triaged
Wishlist
Unassigned
snapd
Triaged
Wishlist
Unassigned

Bug Description

Currently, we use:

$ snap list

command to show all of the snaps installed on the system. I am thinking whether it is possible to show one more column for the size of the snap. For example, for a Qt app, the installed size could be very big if everything is packaged into a single snap package. If a developer finds the size is too big, maybe he/she will opt to content sharing solution or finding other ways to make the package smaller.

Currently, for me, I am more concerned about my disk usage. If I am going to run out of disk space, I may choose one of the biggest app to remove to free more spaces:)

Thanks & best regards,
XiaoGuo

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1661533] [NEW] show the snap app size info

The size calculation is quite rich, since you have older versions of
snaps, and backed-up data to deal with as well. Perhaps we want 'snap
size' which shows something like:

$ snap size
Storage space in MB for snaps, data and backups.

Snap Revisions Size Data Reclaimable Total
foo 3 18 7 14 21
bar 4 5 1 2 6

See 'snap size <foo>' for a detailed breakdown per snap.

$ snap size foo
   Rev Date Snap Data
    23 current 5 MB 1 MB
        2017/01/04 1
        2016/12/01 1
        2016/11/13 1

    20 2016/10/22 10 1
        2016/09/07 1
        2016/05/02 1

    18 2016/03/21 9 1
        2015/08/16 1

common current 16
                         --------
                         25 + 23
TOTAL 47 MB

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

Gack, LP ate my layout. See http://pastebin.ubuntu.com/23917485/ for suggested text layout of 'snap size' output.

Changed in snappy:
status: New → Triaged
importance: Undecided → Wishlist
Changed in snapd:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Some information is already reported by 'snap info'; we are aware it's limited and it's been requested by users via other channels as well to report more details. This is going to be addressed after some more discussions / agreements.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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