Closed xiaoxstz closed 6 months ago
try scoop cache
:
i don't think it allow to keep to specify to "not remove" some particular cache
can you try with scoop cache rm [^(app1)(app2)(...)]
where appN are names of apps? to see if it exempts those apps' cache from removal?
scoop cache
command is used to check cache (the folder <scoop_root>/cache
), rather than installed versions of apps
so, u r talking about multiple installations of same app for all apps?
yes
Try this (in PowerShell):
(scoop list).Name | % { scoop info $_ } | select name, installed | fl *
i faced the need for this too.
as i just today while trying local custom manifests, found out that on scoop update
doesn't remove older versions of the installs
this might be good for some cases where reverting to old was becomes necessity, but for most of the common users, it will be headache i think.
and the command pipeline shared above is too slow & wonky.
(scoop list).Name | % { scoop info $_ } | select name, installed | fl *
wonky as it operates one-by-one rather than on whole data at once. due to which format-table
will clip the name/version columns. fl
or format-list
too is wasteful of space and not usable for inspecting all apps at once.
but yeah, thing is scoop cleanup -ak
works okay. for scoop
root dir, went from 28.9 G
-> 22.7 G
-> 17.0 G
quick and easy (when combined with scoop cache rm -a
too)
Feature Request
Add a command to show all the old versions installed, so we can know what we need to cleanup
Is your feature request related to a problem? Please describe.
I want to cleanup the old versions of the apps. But I don't want to cleanup all, in case the current versions of some apps are unstable.
If I use
scoop cleanup *
, all the old versions will be cleaned. If not, I don't know what apps have old versions.Describe the solution you'd like
The command can be
scoop cleanup --show
,scoop list --old
orscoop old
The output can be
Describe alternatives you've considered