ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.01k stars 1.4k forks source link

[Feature] cleanup with number of versions to keep #5382

Open hannesdorn opened 1 year ago

hannesdorn commented 1 year ago

Feature Request

scoop cleanup 2 scoop cleanup app 2

Describe the solution you'd like

I would like to have cleanup extended, so that I can provide a number of versions I want to keep. Default it would be 1 (as it is now) But I would like to keep one older version.

Describe alternatives you've considered

I could write a batch script to do the job, but I think, it is not a big hassel to extend scoop cleanup.

rashil2000 commented 1 year ago

Please make a PR for the feature!

snowman commented 1 year ago

Also, votes for supporting when uninstall package, if I have multiple versions, it DELETES ALL the versions without prompting me to confirm for older versions

I lost my config now cause the config is not syncing to the new version, thinking uninstall and restart should solve the problem, but now I have to figure out how to restore the config 😭

rashil2000 commented 1 year ago

You need to persist the config in order to keep it around.

Uninstalling a package will always delete all downloaded versions.