Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature] Display app's installation size in scoop info #4840

Closed
tech189 opened this issue Mar 24, 2022 · 10 comments · Fixed by #5031
Closed

[Feature] Display app's installation size in scoop info #4840

tech189 opened this issue Mar 24, 2022 · 10 comments · Fixed by #5031

Comments

@tech189
Copy link
Member

tech189 commented Mar 24, 2022

Feature Request

Is your feature request related to a problem? Please describe.

I would like to be able to quickly find out how much space a currently installed application is taking on my computer while I am looking at the app's info in scoop info. Especially useful if I've just run out of space and want to check if I really need a certain app.

Describe the solution you'd like

When running scoop info another line would display the app's current size including all versions and any cached downloads. Something like the following:

❯ scoop info losslesscut

Name        : losslesscut
Description : Lossless trimming tool for video and audio files
Version     : 3.44.0
Bucket      : extras
...
App size    : 378 MB (471 MB including cache)

This would be useful for working out whether an app is worth keeping on smaller hard drives and might remind users to clean their cache.

However the drawback might be a slightly slower output for this command on all types of drives but especially HDDs. Probably negligible for most drives as it's just checking the size of two folders (app folder & cached items).

Describe alternatives you've considered

The user could always navigate to the app directory in File Explorer or run WizTree or a similar program but that would require multiple extra steps/programs. This could be good for staying in the terminal while installing/uninstalling old programs and running out of space for example.

@rashil2000
Copy link
Member

Cool idea! We can hide this behind the verbosity flag. Would you like to work on it?

@tech189
Copy link
Member Author

tech189 commented Mar 24, 2022

Yes I'd like to have a go at least! Any reason why it might go behind the --verbose flag?

@rashil2000
Copy link
Member

  • Fetching a directory size takes time. We want the default UX of scoop-info to be quick.
  • Like other information hidden by the verbose flag, size of installation will be different for each user. Unless of course we fetch the size of download package itself, like apt show and pacman -Qi do.

@Rafeqm
Copy link

Rafeqm commented Apr 12, 2022

Can you add the size of "package" as well? It will help user determine whether they have enough bandwith (or data plan) to download it.

@tech189
Copy link
Member Author

tech189 commented Apr 12, 2022

That would be a great feature! So, if the package is installed it should show how large it is, but if uninstalled it should send a HEAD request to try to determine the download size (suggested here). Ideally we could have a download_size: "100MB", part of the manifest but that would be a bigger task.

@rashil2000
Copy link
Member

rashil2000 commented Apr 12, 2022

IMO Package Size and Installed Size should be 2 separate fields.

@tech189
Copy link
Member Author

tech189 commented Apr 19, 2022

I got the app size working :D

image

Next up is trying to determine the download size if the app isn't installed.

@Rafeqm
Copy link

Rafeqm commented Apr 20, 2022

Nice!

@tech189
Copy link
Member Author

tech189 commented Jul 8, 2022

Can you add the size of "package" as well? It will help user determine whether they have enough bandwith (or data plan) to download it.

@Rafeqm you can now get either an app's installation size (if installed) or its download/package size (if not installed yet) by using scoop info app_name -v :)

@Rafeqm
Copy link

Rafeqm commented Jul 9, 2022

Wow thanks very much 🎉🎉🎉! I updated scoop and now this long-awaited feature comes saving my bandwidth.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants