Mantain packages after Julia upgrade

How can I mantain my old used packages after a new Julia release upgrade?

The default package environments are kept under <homedir>/.julia/environments/<juliaversion>. To upgrade from say v1.7 to v1.8, copy .julia/environments/v1.7/Project.toml into .julia/environments/v1.8/, start a session of Julia 1.8 and do ] instantiate to populate the manifest.


upgrading from 1.8.0 to 1.8.3.
dirs come without enviroments folder. i copied from 1.8.0.
after instantiate, that error was shown:
Unhandled Task ERROR: IOError: FDWatcher: bad file descriptor (EBADF)

What did you copy where exactly?

All minor versions share the same base environment, so copying the Project.toml in this case is not necessary.

Here is an issue for that error message download fails with `FDWatcher: bad file descriptor (EBADF)` · Issue #197 · JuliaLang/Downloads.jl · GitHub

Can you tell which package causes the error to be thrown? Then delete that from .julia/packages/ and try to instantiate again.

everything is normal by now. seems packages that was compromissed was restored in updates.