Julia environments list

Starting a new Julia environment is very ease

julia>] activate test

(test) pkg> 

Is there a way to visualize a list of all the environments?

2 Likes

I recently found a file ~/.julia/logs/manifest_usage.toml which lists all recently used environments. I understand that this file is also used for ] gc.

3 Likes

Being able to list them all would be a nice feature. Basically, just parse that file, sort the keys and print them. Would be a nice addition to Pkg.

8 Likes

I arrived here looking for a way to list environments =)

julia> using Pkg

julia> Pkg.envdir()
"/home/jrun/data/.julia/environments"

shell> cd "/home/jrun/data/.julia"
/mnt/data/.julia

shell> ls -la
total 36
drwxr-xr-x  8 jrun jrun 6144 Aug  9 19:52 .
drwxr-xr-x  6 jrun jrun 6144 Aug  9 18:29 ..
drwxr-xr-x  5 jrun jrun 6144 Aug  9 19:51 artifacts
drwxr-xr-x  3 jrun jrun 6144 Aug  9 19:48 compiled
drwxr-xr-x  2 jrun jrun 6144 Aug  9 19:51 logs
drwxr-xr-x 16 jrun jrun 6144 Aug  9 19:51 packages
lrwxrwxrwx  1 jrun jrun   15 Aug  9 18:29 registries -> /tmp/registries
drwxr-xr-x  3 jrun jrun 6144 Aug  9 19:52 scratchspaces
drwxr-xr-x  3 jrun jrun 6144 Aug  9 18:29 servers

Looks like there is no env by default for the binary

Opened an issue A way to list environments · Issue #2688 · JuliaLang/Pkg.jl · GitHub

1 Like