So. I am on neon and I want to install libreoffice impress. So I search for libreoffice which sure enough turns up impress. It also has a handy box telling me the size of impress, which is 900kb. So that's awesome.
That's only the size of the actual package containing the impress appdata! This does not include the dependencies that would be dragged in. And those are substantial...
Upon attempting to install it via apt:
> Need to get 60,1 MB of archives.
> After this operation, 221 MB of additional disk space will be used.
Steps to Reproduce:
1. don't have libreoffice installed
2. look for libreoffice in discover
Estimate has a 6000% margin of error
Estimate should have a margin of error less than 100%
Ideally I'd imagine that the dependencies need to be taking into account for starters.
(there's also a problem due to the async transaction nature of discover where a user could install impress and then while that is happening also considers installing writer, which would now still show 60mib footprint although its footprint effectively would be 2mib once the impress transaction finishes, not sure that is worth considering for now though)
I'm unsure how to get this one right with apt. The data is not available in PackageKit altogether.
Is there an upstream bug report requesting dependency size information from PackageKit?
Git commit 0cc8edb1c9771bc4998ac9995f153282dc360bf1 by Aleix Pol.
Committed on 08/11/2017 at 15:20.
Pushed by apol into branch 'master'.
Include the number of dependencies an application will have to install
Together with the size of the package itself.
To show the full size we'd have to resolve them separately and for now
I'm afraid it would collapse PackageKit in some implementations.
M +20 -0 libdiscover/backends/PackageKitBackend/PackageKitResource.cpp
M +3 -0 libdiscover/backends/PackageKitBackend/PackageKitResource.h
Here's an approach, please confirm if it's useful or not. I'd say it's closer to what we need at least.
*** Bug 383514 has been marked as a duplicate of this bug. ***
*** Bug 295290 has been marked as a duplicate of this bug. ***
Here's the upstream feature request to include dependency sizes, FWIW: https://bugs.freedesktop.org/show_bug.cgi?id=19071
Although some limited form of it might have already been implemented, according to https://bugs.freedesktop.org/show_bug.cgi?id=15518