Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to uninstall the specified version of Julia? #96

Closed
OUCyf opened this issue Sep 24, 2021 · 7 comments
Closed

How to uninstall the specified version of Julia? #96

OUCyf opened this issue Sep 24, 2021 · 7 comments
Labels
question Further information is requested

Comments

@OUCyf
Copy link

OUCyf commented Sep 24, 2021

Hi~
I use jill in my MacBook and I want to know how to uninstall the specified version of Julia? By manual manipulation or something else?

Thanks

Fu

@johnnychen94
Copy link
Owner

To completely uninstall julia installed by jill on macOS:

  • delete the julia folder in install_dir, e.g., /Applications/Julia-1.6.app
  • optionally remove the symlinks in symlink_dir, e.g., ~/.local/bin/julia-1.6

So for instance, run the following codes if you want to remove Julia-1.6:

rm -rf /Applications/Julia-1.6.app
rm ~/.local/bin/julia-1.6
# maybe also
rm ~/.local/bin/julia-1
rm ~/.local/bin/julia

@OUCyf
Copy link
Author

OUCyf commented Sep 24, 2021

Thanks~
The path ~/.julia also have some Julia files, whether to remove?

@johnnychen94
Copy link
Owner

johnnychen94 commented Sep 24, 2021

~/.julia is used to store Julia packages, precompiled files, environments and etc. If you meant to uninstall Julia and don't plan to use Julia anymore, then yes, you can also remove that folder. jill itself doesn't touch this folder.

@johnnychen94 johnnychen94 added the question Further information is requested label Sep 24, 2021
@OUCyf
Copy link
Author

OUCyf commented Sep 24, 2021

Yep, I know that.

  • For example, I use jill to install 2 versions eg. Julia-1.5 and Julia-1.6, and I use both of them. Duing to some reasons, I need to uninstall the julia-1.5 and all the packages of it, and don't break environment of Julia-1.6.
  • I found some all packages will be stored in ~/.julia; so how to distinguish those packages between different versions of Julia.

@johnnychen94
Copy link
Owner

Duing to some reasons, I need to uninstall the julia-1.5 and all the packages of it, and don't break environment of Julia-1.6.

The following codes should be sufficient:

rm -rf /Applications/Julia-1.5.app
rm ~/.local/bin/julia-1.5

I found some all packages will be stored in ~/.julia; so how to distinguish those packages between different versions of Julia.

All Julia packages are installed in ~/.julia/packages/ in version-agnostic manner; whether a specific package version is used depends on the environment you're using. For instance, ~/.julia/environments/v1.6/Manifest.toml specifies all julia package versions. There isn't ~/.julia/packages/v1.6 stuff. Thus you don't need to worry about this at all.

If you want to cleanup some spaces, you can try pkg> gc in Pkg mode. Or if you insist, another way is to manually remove ~/.julia/packages folder and then pkg> instantiate to rebuild it.

@OUCyf
Copy link
Author

OUCyf commented Sep 24, 2021

Oh! I got the point. Thanks so much!

With best wishes~

@xsa-dev
Copy link

xsa-dev commented Aug 7, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants