Open hickford opened 2 years ago
Another example after installing dotnet install -g git-credential-manager
du -ha ~/.dotnet/tools
153 MB
0 .dotnet/tools/.store/.stage 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/git-credential-manager.nuspec 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/NOTICE 1.8M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Themes.Fluent.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/fr/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/fr 16K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Desktop.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/ru/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/ru 60K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/GitLab.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/tr/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/tr 280K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Native.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/it/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/it 1.9M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Base.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/pl/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/pl 76K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Markup.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/ko/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/ko 32K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/git-credential-manager.deps.json 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/cs/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/cs 80K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Atlassian.Bitbucket.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/zh-Hant/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/zh-Hant 172K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/System.Drawing.Common.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/de/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/de 212K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.DesignerSupport.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/zh-Hans/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/zh-Hans 12K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.MicroCom.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/es/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/es 1.1M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Controls.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/pt-BR/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/pt-BR 424K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/SkiaSharp.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/ja/System.CommandLine.resources.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/ja 320K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.X11.dll 1.8M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-musl-x64/native/libHarfBuzzSharp.so 11M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-musl-x64/native/libSkiaSharp.so 13M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-musl-x64/native 13M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-musl-x64 7.7M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x86/native/libSkiaSharp.dll 788K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x86/native/libHarfBuzzSharp.dll 3.2M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x86/native/av_libglesv2.dll 12M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x86/native 12M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x86 948K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm/native/libHarfBuzzSharp.so 5.3M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm/native/libSkiaSharp.so 6.3M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm/native 6.3M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm 1.6M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-x64/native/libHarfBuzzSharp.so 8.9M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-x64/native/libSkiaSharp.so 11M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-x64/native 11M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-x64 1.4M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm64/native/libHarfBuzzSharp.so 7.7M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm64/native/libSkiaSharp.so 9.1M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm64/native 9.1M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/linux-arm64 2.2M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/osx/native/libHarfBuzzSharp.dylib 16M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/osx/native/libSkiaSharp.dylib 1.2M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/osx/native/libAvaloniaNative.dylib 19M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/osx/native 19M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/osx 9.0M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x64/native/libSkiaSharp.dll 896K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x64/native/libHarfBuzzSharp.dll 4.2M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x64/native/av_libglesv2.dll 15M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x64/native 15M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-x64 7.6M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-arm64/native/libSkiaSharp.dll 956K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-arm64/native/libHarfBuzzSharp.dll 4.1M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-arm64/native/av_libglesv2.dll 13M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-arm64/native 13M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win-arm64 420K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/unix/lib/net6.0/System.Drawing.Common.dll 420K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/unix/lib/net6.0 420K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/unix/lib 420K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/unix 36K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll 36K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win/lib/netstandard2.0 444K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win/lib/net6.0/System.Drawing.Common.dll 56K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll 500K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win/lib/net6.0 536K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win/lib 536K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes/win 96M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/runtimes 68K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/git-credential-manager.dll 20K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Microsoft.IdentityModel.Abstractions.dll 212K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/System.CommandLine.dll 236K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Dialogs.dll 384K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/gcmcore.dll 72K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Remote.Protocol.dll 80K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/System.IO.Pipelines.dll 116K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Skia.dll 152K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Tmds.DBus.Protocol.dll 112K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.OpenGL.dll 220K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.FreeDesktop.dll 88K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Markup.Xaml.dll 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/DotnetToolSettings.xml 68K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Microsoft.Identity.Client.Extensions.Msal.dll 680K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Newtonsoft.Json.dll 28K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Microsoft.Win32.SystemEvents.dll 48K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Microsoft.AzureRepos.dll 992K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Microsoft.Identity.Client.dll 12K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.dll 16K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/MicroCom.Runtime.dll 28K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/System.Security.Cryptography.ProtectedData.dll 124K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/GitHub.dll 116K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/HarfBuzzSharp.dll 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/git-credential-manager.runtimeconfig.json 736K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any/Avalonia.Win32.dll 107M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0/any 107M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools/net6.0 107M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/tools 8.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/images/icon.png 8.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/images 12K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/.signature.p7s 46M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/git-credential-manager.2.1.0.nupkg 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/git-credential-manager.2.1.0.nupkg.sha512 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0/.nupkg.metadata 152M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager/2.1.0 152M .dotnet/tools/.store/git-credential-manager/2.1.0/git-credential-manager 4.0K .dotnet/tools/.store/git-credential-manager/2.1.0/restore.csproj.nuget.g.props 16K .dotnet/tools/.store/git-credential-manager/2.1.0/project.assets.json 152M .dotnet/tools/.store/git-credential-manager/2.1.0 152M .dotnet/tools/.store/git-credential-manager 152M .dotnet/tools/.store 148K .dotnet/tools/git-credential-manager 153M .dotnet/tools
Install a .NET global tool, such as https://www.nuget.org/packages/Microsoft.dotnet-interactive/1.0.340501, noting the package size of 46.9 MB:
Inspect the installation:
The install size is 183 MB! Why so large? Most surprisingly, the installation includes the original compressed package file! Surely this is redundant.
I installed on Linux but my install nevertheless includes 40 MB of runtime files relating to other operating systems
du -h .dotnet/tools/.store/microsoft.dotnet-interactive/1.0.340501/microsoft.dotnet-interactive/1.0.340501/tools/net6.0/any/runtimes --max-depth 1
. Surely these could be omitted.There are also tens of megabytes of translations for languages I've never used. However I suppose these are necessary to support the case when the user changes language after install.
Together this suggests the installation size could be reduced by at least 50%.