每次用 ] up
命令更新包的时候,旧包是不是还被保留着?如何清理旧包呢?
比如 ↑ Knet v1.1.2 ⇒ v1.2.0
,则Knet的1.1.2版本怎么自动清理,谢谢!!
]gc
其实你 ]?
就能看到帮助
gc: garbage collect packages not used for a significant time
ref
看上去是跨版本清理,我这里开的 v1.0 的 REPL,v0.7~v1.1 的都清理了。
而且是所有的历史版本都清理了:
(v1.0) pkg> gc
Active manifests at:
`C:\Users\woclass\.julia\environments\v0.7\Manifest.toml`
`C:\Users\woclass\.julia\environments\v1.1\Manifest.toml`
`C:\Users\woclass\.julia\environments\v1.0\Manifest.toml`
`C:\Users\woclass\Desktop\GitHub\MXNet.jl\Manifest.toml`
`C:\Users\woclass\Desktop\GitHub\PiCraft.jl\Manifest.toml`
Deleted C:\Users\woclass\.julia\packages\ApplicationBuilder\PzBv2: 52.945 KiB
Deleted C:\Users\woclass\.julia\packages\AxisAlgorithms\m2HBJ: 17.000 KiB
Deleted C:\Users\woclass\.julia\packages\AxisArrays\G6pZY: 310.038 KiB
Deleted C:\Users\woclass\.julia\packages\BandedMatrices\kvwBE: 220.743 KiB
Deleted C:\Users\woclass\.julia\packages\BoundaryValueDiffEq\J9G8H: 21.904 KiB
Deleted C:\Users\woclass\.julia\packages\CMake\ZGawK: 9.658 KiB
Deleted C:\Users\woclass\.julia\packages\CMakeWrapper\8d1RU: 9.260 KiB
Deleted C:\Users\woclass\.julia\packages\ColorBrewer\5lC10: 111.586 KiB
Deleted C:\Users\woclass\.julia\packages\ColorVectorSpace\HeIVH: 51.039 KiB
Deleted C:\Users\woclass\.julia\packages\CoordinateTransformations\IrN9A: 76.834 KiB
Deleted C:\Users\woclass\.julia\packages\CUDAdrv\JWljj: 106.083 KiB
...
Deleted C:\Users\woclass\.julia\packages\StochasticDiffEq\hRI1d: 328.776 KiB
Deleted C:\Users\woclass\.julia\packages\StochasticDiffEq\Z4xSk: 329.549 KiB
Deleted C:\Users\woclass\.julia\packages\Sundials\AL2Km: 414.901 KiB
Deleted C:\Users\woclass\.julia\packages\Sundials\WX2kB: 412.771 KiB
...
Deleted 84 package installations : 76.357 MiB
(v1.0) pkg>
1 个赞
many thanks!