You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: add whitelist for "Large misc. packages" #6
Thanks a lot for this awesome packages! It's an easy work-around for an annoying limitation :)
I have one idea to improve it for my current situation: I really need the space by all options, i.e., I need large-packages: true. However, I also need llvm-12 and friends, which is removed by that option. Of course, I can work around this by installing it again in another step but I think it would be more convenient and faster if it weren't removed in the first place. One idea to achieve this is to add a whitelist feature that allows to filter out packages that are going to be uninstalled. What do you think?
Reacted by Jérémie "Sonnet 4.5" Lumbroso, acgxv, Matt McCormick and Janaka Abeywardhana
Do you have any ideas on how you think this should be specified? So this could be an input flag, like large-packages-whitelist:, with a string of comma separated patterns? Like large-packages-whitelist: "llvm, dotnet" for instance?
Yes, I think 'large-packages-whitelist' would be a good idea. Maybe an actual list of regexes rather than a poor-man's list encoded as a string?
I have been able to reduce my disk usage by other means in the meantime, so I won't be using this action anymore for the time being. I did, however, spent a few minutes thinking about how I would implement this.
I found this post asking the same question I had: how to get a list of packages defined by a wildcard and then remove some with another wildcard. However, I think that that solution isn't quite what we want yet: it only whitelists packages that match the regex of packages that should be removed. However, apt-get remove may remove further packages, which should also be retained.
add a bug. when dotnet set false, and Large is true, shell will be clean all dotnet runtime . please fix.
It would be even better to provide a. Net runtime environment that retains the specified version.
We would like this also in aya-rs/bpf-linker#314. Though I'd call it "allowlist". I can take a stab at implementing, since nobody has done it in 2.5 years.
I think what could work as an easier to implement alternative, is splitting the "Large misc. packages" into different categories, which actually have something in common, like:
.NET runtime (it already has its category, the fact that these packages ended up in misc. is an inconsistency).
PHP
MongoDB
LLVM
etc.
It wouldn't require implementing any allowlists, but would decrease the chances of people removing something they need.
Activity
jlumbroso commentedon Jun 30, 2023
Hello @ingomueller-net,
Thank you for your kind words and the very nice suggestion, I think this is an excellent idea!
The code for large file removal currently is here:
A few questions for you:
large-packages-whitelist:, with a string of comma separated patterns? Likelarge-packages-whitelist: "llvm, dotnet"for instance?ingomueller-net commentedon Jul 5, 2023
Yes, I think 'large-packages-whitelist' would be a good idea. Maybe an actual list of regexes rather than a poor-man's list encoded as a string?
I have been able to reduce my disk usage by other means in the meantime, so I won't be using this action anymore for the time being. I did, however, spent a few minutes thinking about how I would implement this.
I found this post asking the same question I had: how to get a list of packages defined by a wildcard and then remove some with another wildcard. However, I think that that solution isn't quite what we want yet: it only whitelists packages that match the regex of packages that should be removed. However,
apt-get removemay remove further packages, which should also be retained.gmij commentedon Aug 8, 2023
add a bug. when dotnet set false, and Large is true, shell will be clean all dotnet runtime . please fix.
It would be even better to provide a. Net runtime environment that retains the specified version.
tamird commentedon Oct 21, 2025
We would like this also in aya-rs/bpf-linker#314. Though I'd call it "allowlist". I can take a stab at implementing, since nobody has done it in 2.5 years.
vadorovsky commentedon Oct 21, 2025
I think what could work as an easier to implement alternative, is splitting the "Large misc. packages" into different categories, which actually have something in common, like:
etc.
It wouldn't require implementing any allowlists, but would decrease the chances of people removing something they need.
Implement large-packages-keep
Implement large-packages-keep
kjetilk-kontali commentedon Dec 4, 2025
Any progress on this one? I would really like the proposed solution by @tamird because we need to keep
powershell, but everything else can be removeddocs: credit the contributors who reported the .NET overlap first, an…