I would like to understand if there is a way for all users to use the installed Julia libraries? like, Can libraries be installed by a sudoer so that it is available for all other users? Otherwise, each user has to install their own set of libraries which are common to themselves and if all users install all libraries, it becomes tedious and consumes storage.
If anyone has tried out, Please fill in. This question is with respect to Linux only.
Most likely this should work:
define JULIA_DEPOT_PATH
environment variable pointing to some folder where sudoer has write access and everybody else has read
Start Julia and install required packages (they will all end in the above path).
Precompile all packages: using Pkg;pkg"precompile"
Some packages that have PyCall
dependencies are installing conda modules - install them all using Conda.add
as the sudoer
Make sure that every user sees the repository under exactly the same path as the sudoer (some packages unfortunately set fixed paths when building).
The above should work, provided that each user of Julia installation is running on identical hardware.
using Pkg;Pkg.activate("somefolder")
. They will be able only to use packages defined by the sudoer.