Search code examples
juliaijulia-notebook

Updating version of a Julia without reinstalling packages from previous version


Recently new version (0.4) of the Julia was rolled out. I would like to install it, since I noticed some bugs in my current 0.3.11 version. But after installing 0.4 I realized my packages from 0.3.11 are not in 0.4.

It would be very tedious to reinstall these packages again (and repeating this process for every version update going forward) given the speed of the package manager, so I was wondering if there is a workaround for this?


Solution

  • You can also simplify the process by copying your Project.toml from your ~/.julia/environments/v1.x to your ~/.julia/environments/v1.y and doing a Pkg update. That will install all the same packages you had before.