Updating Julia from 1.6 to 1.6.1

Hello,

How do I update from 1.6 to 1.6.1 without losing all the packages I already have?

I am on Linux.

Thanks

Hi, julia can be installed (typically this means just uncompressing a file) in any location without touching anything in the user depot folder (usually at ~/.julia). It is there where the installed packages reside, so, just relink the julia alias (or update your path) to point to the new julia executable (At least for patch releases this must be enough, they all share the same global environment) and the packages installed will remain unchanged.
Anyway, just for completeness, the state of the global environment is stored in the Project.toml and Manifest.toml files at the correspond depot path (.julia/environments/v1.6/), from those files you must be able to replicate all back again if something bad happens.

8 Likes

Thanks Jose!

1 Like