How to completely reinstall Julia on Mac

Hello everyone,

somehow I managed to render Julia completely useless on My Mac (it happened when I tried to update Julia to a newer version via this thread)

Now every time I try to work with Julia I get the error message

ERROR: expected package `...` to be registered

It’s a package that I installed with git and that is not official and that I urgently need for my work.

Hence I want to completely reinstall Julia. But just by uninstalling the app in my applications there is some part of Julia left.

This is noticeable in the fact, that when I download and open the newer Julia version, I still find the same REPL history and of course I get the the same ERROR message.

That’s why I ask you: how to completely get rid of Julia (all startup and history files, that I didn’t seem to find) ?

Alright, as it is so often I probably found the solution directly after posting the question even if I spend hours before trying to find a solution.

I just clicked on the menu bar - go to folder - and typed - /Users/…/.julia

by removing all the content in this folder (that I can’t find with finder) Julia
seems to be completely blank.

If you download the .tar.gz archive ( julia-1.9.4-macaarch64.tar.gz), you can expand it anywhere. Then create a script that will set the PATH and export the DEPOT path (a la VSCode_Julia_portable/assets/install.sh at 689fcb996cff4cb858b88e37fe641f2b99816e8b · PetrKryslUCSD/VSCode_Julia_portable · GitHub, and VSCode_Julia_portable/assets/install.sh at 689fcb996cff4cb858b88e37fe641f2b99816e8b · PetrKryslUCSD/VSCode_Julia_portable · GitHub). And, voila, you have a “portable” Julia on your Mac. No toes have been stepped on in the process.

1 Like

Yea, thanks I am sure this will work theoretically :wink: Since my Julia is now running without problems I‘ll let it for now.

1 Like