Windows環境でのパッケージマネージャーのscoopを使いはじめて2ヶ月くらい立った際にディスク逼迫に遭遇。
WindowsUpdateのキャッシュらしきものを消したり等色々調整しても容量がscoop以前の水準に戻らないので、scoop起因かなと思いクリーンアップに的な手順を調査して実践したのでメモ。
以下コマンドでscoopのキャッシュの中身とサイズが確認できる。
scoop cache show
私の環境での結果は以下。2GB程度保持していた。
以前のバージョンのものを保持し続けているようで、updateしていくとひたすらキャッシュが膨らんでいきそうな勢い。
キャッシュ利用容量の上限とかはないんだろうか。
1.7 MB 7zip (19.00) https_7-zip.org_a_7z1900-x64.msi
217.0 KB cacert (2020-07-22) https_curl.haxx.se_ca_cacert-2020-07-22.pem_cacert.pem
2.5 MB gawk (5.1.0) https_downloads.sourceforge.net_project_ezwinports_gawk-5.1.0-w32-bin.zip
13.9 MB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-binutils-2.34-1-any.pkg.tar.xz
3.1 MB gcc (9.3.0-1) …_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-crt-git-8.0.0.5685.ef310786-1-any.pkg.tar.xz
141.3 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-expat-2.2.9-1-any.pkg.tar.xz
33.0 MB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-gcc-9.3.0-1-any.pkg.tar.xz
9.6 MB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-gcc-fortran-9.3.0-1-any.pkg.tar.xz
627.3 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-gcc-libgfortran-9.3.0-1-any.pkg.tar.xz
687.8 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-gcc-libs-9.3.0-1-any.pkg.tar.xz
3.1 MB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-gettext-0.19.8.1-8-any.pkg.tar.xz
490.8 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-gmp-6.2.0-1-any.pkg.tar.xz
5.0 MB gcc (9.3.0-1) …o.msys2.org_mingw_x86_64_mingw-w64-x86_64-headers-git-8.0.0.5685.ef310786-1-any.pkg.tar.xz
642.1 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-isl-0.22.1-1-any.pkg.tar.xz
623.0 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz
43.0 KB gcc (9.3.0-1) …2.org_mingw_x86_64_mingw-w64-x86_64-libwinpthread-git-8.0.0.5680.0df6b89f-1-any.pkg.tar.xz
151.6 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-make-4.3-1-any.pkg.tar.xz
78.9 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-mpc-1.1.0-1-any.pkg.tar.xz
345.9 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-mpfr-4.0.2-2-any.pkg.tar.xz
238.9 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-pkg-config-0.29.2-1-any.pkg.tar.xz
12.9 KB gcc (9.3.0-1) …repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-windows-default-manifest-6.4-3-any.pkg.tar.xz
52.3 KB gcc (9.3.0-1) …ys2.org_mingw_x86_64_mingw-w64-x86_64-winpthreads-git-8.0.0.5680.0df6b89f-1-any.pkg.tar.xz
102.1 KB gcc (9.3.0-1) http_repo.msys2.org_mingw_x86_64_mingw-w64-x86_64-zlib-1.2.11-7-any.pkg.tar.xz
5.8 MB gh (0.11.1) https_github.com_cli_cli_releases_download_v0.11.1_gh_0.11.1_windows_amd64.zip
5.4 MB gh (0.12.0) https_github.com_cli_cli_releases_download_v0.12.0_gh_0.12.0_windows_amd64.zip
5.4 MB gh (1.0.0) https_github.com_cli_cli_releases_download_v1.0.0_gh_1.0.0_windows_amd64.zip
44.7 MB git (2.28.0.windows.1) …for-windows_git_releases_download_v2.28.0.windows.1_PortableGit-2.28.0-64-bit.7z.exe_dl.7z
132.7 MB go (1.15) https_dl.google.com_go_go1.15.windows-amd64.zip
132.7 MB go (1.15.1) https_dl.google.com_go_go1.15.1.windows-amd64.zip
132.7 MB go (1.15.2) https_dl.google.com_go_go1.15.2.windows-amd64.zip
8.7 MB gow (0.8.0) https_github.com_bmatzelle_gow_releases_download_v0.8.0_Gow-0.8.0.exe_dl.7z
34.2 MB graphviz (2.38) https_graphviz.gitlab.io__pages_Download_windows_graphviz-2.38.msi
4.4 MB graphviz (2.44.1) …z.org_Packages_stable_windows_10_cmake_Release_x64_graphviz-install-2.44.1-win64.exe_dl.7z
36.4 KB gzip (1.3.12) …orge.net_project_mingw_MSYS_Base_gzip_gzip-1.3.12-2_gzip-1.3.12-2-msys-1.0.13-bin.tar.lzma
596.5 KB gzip (1.3.12) …project_mingw_MSYS_Base_msys-core_msys-1.0.18-1_msysCORE-1.0.18-1-msys-1.0.18-bin.tar.lzma
137.6 KB innounp (0.49) https_raw.githubusercontent.com_ScoopInstaller_Binary_master_innounp_innounp049.rar
156.5 KB less (562.0) https_github.com_jftuga_less-Windows_releases_download_less-v562.0_less.exe
18.5 KB less (562.0) https_github.com_jftuga_less-Windows_releases_download_less-v562.0_lesskey.exe
23.0 MB neovim (0.4.4) https_github.com_neovim_neovim_releases_download_v0.4.4_nvim-win64.zip
2.3 MB nvm (1.1.7) https_github.com_coreybutler_nvm-windows_releases_download_1.1.7_nvm-noinstall.zip
88.9 MB pwsh (7.0.3) …tps_github.com_PowerShell_PowerShell_releases_download_v7.0.3_PowerShell-7.0.3-win-x64.zip
25.7 MB python37 (3.7.9) https_www.python.org_ftp_python_3.7.9_python-3.7.9-amd64.exe_py3.exe
83.6 MB r (4.0.2) https_cloud.r-project.org_bin_windows_base_R-4.0.2-win.exe
1.8 MB ripgrep (12.1.1) ….com_BurntSushi_ripgrep_releases_download_12.1.1_ripgrep-12.1.1-x86_64-pc-windows-msvc.zip
241.6 MB rstudio (1.3.1073) https_download1.rstudio.org_desktop_windows_RStudio-1.3.1073.zip
241.6 MB rstudio (1.3.1093) https_download1.rstudio.org_desktop_windows_RStudio-1.3.1093.zip
10.6 MB ruby (2.7.1-1) …eclick_rubyinstaller2_releases_download_RubyInstaller-2.7.1-1_rubyinstaller-2.7.1-1-x64.7z
310.5 KB sed (4.2.1) https_downloads.sourceforge.net_project_gnuwin32_sed_4.2.1_sed-4.2.1-bin.zip
814.2 KB sed (4.2.1) https_downloads.sourceforge.net_project_gnuwin32_sed_4.2.1_sed-4.2.1-dep.zip
73.7 MB slack (4.8.0) https_downloads.slack-edge.com_releases_windows_4.8.0_prod_x64_slack-4.8.0-full.nupkg
78.5 MB slack (4.9.0) https_downloads.slack-edge.com_releases_windows_4.9.0_prod_x64_slack-4.9.0-full.nupkg
30.2 MB sublime-merge (2027) https_download.sublimetext.com_sublime_merge_build_2027_x64.zip
13.9 MB sublime-text (3.2.2-3211) https_download.sublimetext.com_Sublime_20Text_20Build_203211_20x64.zip
697 B sublime-text (3.2.2-3211) …ubusercontent.com_lukesampson_scoop-extras_master_scripts_sublime-text_install-context.reg
506 B sublime-text (3.2.2-3211) …usercontent.com_lukesampson_scoop-extras_master_scripts_sublime-text_uninstall-context.reg
2.2 KB sudo (0.2020.01.26) …ithubusercontent.com_lukesampson_psutils_c7116ac143ca81f223e6091d0974f45ac241eb1d_sudo.ps1
22.1 KB tar (1.23) …t_mingw_MSYS_Base_gettext_gettext-0.18.1.1-1_libintl-0.18.1.1-1-msys-1.0.17-dll-8.tar.lzma
518.7 KB tar (1.23) …roject_mingw_MSYS_Base_libiconv_libiconv-1.14-1_libiconv-1.14-1-msys-1.0.17-dll-2.tar.lzma
596.5 KB tar (1.23) …project_mingw_MSYS_Base_msys-core_msys-1.0.18-1_msysCORE-1.0.18-1-msys-1.0.18-bin.tar.lzma
35.3 KB tar (1.23) …_mingw_MSYS_Base_regex_regex-1.20090805-2_libregex-1.20090805-2-msys-1.0.13-dll-1.tar.lzma
136.1 KB tar (1.23) …sourceforge.net_project_mingw_MSYS_Base_tar_tar-1.23-1_tar-1.23-1-msys-1.0.13-bin.tar.lzma
8.8 MB vim (8.2) https_ftp.nluug.nl_pub_vim_pc_gvim82.exe_dl.7z
219 B vim (8.2) https_raw.githubusercontent.com_ScoopInstaller_Main_master_scripts_vim_install-context.reg
168 B vim (8.2) …tps_raw.githubusercontent.com_ScoopInstaller_Main_master_scripts_vim_uninstall-context.reg
652 B vscode (1.48.1) …w.githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-install-context.reg
488 B vscode (1.48.1) …githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-uninstall-context.reg
79.6 MB vscode (1.48.1) https_vscode-update.azurewebsites.net_1.48.1_win32-x64-archive_stable_dl.7z
652 B vscode (1.48.2) …w.githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-install-context.reg
488 B vscode (1.48.2) …githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-uninstall-context.reg
79.6 MB vscode (1.48.2) https_vscode-update.azurewebsites.net_1.48.2_win32-x64-archive_stable_dl.7z
652 B vscode (1.49.0) …w.githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-install-context.reg
488 B vscode (1.49.0) …githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-uninstall-context.reg
85.2 MB vscode (1.49.0) https_vscode-update.azurewebsites.net_1.49.0_win32-x64-archive_stable_dl.7z
652 B vscode (1.49.1) …w.githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-install-context.reg
488 B vscode (1.49.1) …githubusercontent.com_lukesampson_scoop-extras_master_scripts_vscode-uninstall-context.reg
85.2 MB vscode (1.49.1) https_vscode-update.azurewebsites.net_1.49.1_win32-x64-archive_stable_dl.7z
4.7 MB wget (1.20.3) https_eternallybored.org_misc_wget_releases_wget-1.20.3-win64.zip
3.3 MB win32-openssh (8.1.0.0p1-Beta) …ps_github.com_PowerShell_Win32-OpenSSH_releases_download_v8.1.0.0p1-Beta_OpenSSH-Win64.zip
20.5 MB windows-terminal (1.1.2233.0) …s_download_v1.1.2233.0_Microsoft.WindowsTerminal_1.1.2233.0_8wekyb3d8bbwe.msixbundle_dl.7z
21.0 MB windows-terminal (1.2.2381.0) …s_download_v1.2.2381.0_Microsoft.WindowsTerminal_1.2.2381.0_8wekyb3d8bbwe.msixbundle_dl.7z
8.7 MB winscp (5.17.7) https_downloads.sourceforge.net_project_winscp_WinSCP_5.17.7_WinSCP-5.17.7-Portable.zip
7.7 MB youtube-dl (2020.07.28) https_github.com_ytdl-org_youtube-dl_releases_download_2020.07.28_youtube-dl.exe
7.7 MB youtube-dl (2020.09.06) https_github.com_ytdl-org_youtube-dl_releases_download_2020.09.06_youtube-dl.exe
7.7 MB youtube-dl (2020.09.14) https_github.com_ytdl-org_youtube-dl_releases_download_2020.09.14_youtube-dl.exe
7.7 MB youtube-dl (2020.09.20) https_github.com_ytdl-org_youtube-dl_releases_download_2020.09.20_youtube-dl.exe
Total: 85 files, 1.9 GB
以下コマンドでキャッシュを消してクリーンアップ。容量確保完了。
scoop cache rm *
scoop cleanup *