各语言怎么清除包管理器缓存文件?

golang
# 清除编译过程生成的中间文件
go clean -cache
# 清除已下载依赖模块副本
go clean -modcache

rust
# 安装工具
cargo install cargo-cache
# 清理所有缓存目录
cargo cache --remove-dir all
# 自动清理过期缓存
cargo cache --autoclean

python
# 清理所有缓存
pip cache purge

nodejs
# 清除npm全局缓存
npm cache clean --force

php
# 清理缓存
composer clear-cache


docker

# 清理各类缓存

docker system prune