Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732752 - Show binary package size in 'emerge' output
Summary: Show binary package size in 'emerge' output
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-15 15:11 UTC by Stuart Shelton
Modified: 2024-08-06 22:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2020-07-15 15:11:56 UTC
Given output such as:

```
# emerge -Kva skopeo

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary  N    ~] app-emulation/skopeo-1.1.0::gentoo  USE="-btrfs" 0 KiB

Total: 1 package (1 new, 1 binary), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
```

... it would be really helpful if - either by default or via a new command-line argument - `emerge` could show the size of the binary packages, rather than the size of the download (since, of course, when a binary package is used there should be no download, but equally the package size should already be known as the binary package exists on disk).
Comment 1 Stuart Shelton 2024-08-06 22:33:46 UTC
While systems configured with a remote Binhost may equivalently show the download size rather than the binary package size, when a system has a local (or NFS-mounted or similarly shared) $PKGDIR the size is always reported as '0 KiB', in which case it may as well be omitted.

If the information is readily available, it would also be really useful to state the additional filesystem space the operation would consume - something along the lines of:

```
# emerge -Kva skopeo

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary  N    ~] app-emulation/skopeo-1.14.0-r3::gentoo  USE="-btrfs -device-mapper -rootless" 19 MiB

Total: 1 package (1 new, 1 binary), Size of downloads: 0 KiB, Final size of installed tree: 39748 KiB (38.8 MiB)

Would you like to merge these packages? [Yes/No]
```

A stretch (especially given the move toward merged-usr installations) would be to also break down the space requirements based on the mounted filesystems present when the installation takes place:

```
…

Total: 1 package (1 new, 1 binary), Size of downloads: 0 KiB, Final size of installed tree: 39748 KiB (38.8 MiB)

Additional space requirements:
  /      0   KiB (66% used after operation)
  /var   0.8 MiB (70% used after operation)
  /usr  38.0 MiB (68% used after operation)

Would you like to merge these packages? [Yes/No]
```

(This functionality could be gated behind an additional level of verbosity if necessary)