I have had julia installed for maybe two years now, and realised the .julia
folder has grown quite big, around 25 GB. I didn’t think too much about it since I have a lot of packages installed and I also run some python and know how much a tensorflow installation can take.
Recently though I did a more thorough analysis of my home folder and noticed that of those 25 GBs in .julia
it was 16 in the registries/General
folder, and 15 of those came from the registries/General/.git
folder.
I deleted the folder and ran an pkg> up
to make it re-download it and now it is a reasonable size (119MB) again. It also seems like now it is not a cloned repo, but just a folder since it is missing the .git
subfolder.
I’m not sure if this is just something that went wrong on my system or if there is some underlying issue that might be filling up julia users home folders over time for no good reason?
Thought I would put it up here in case more people had the same problem. An easy way to check the size on a normal linux installation could be to run
du -sh ~/.julia/registries/General
and see if it is multiple GBs in size.