I am trying to install miniconda as root to be accessible to all user in a virtual machine.
My goal is to share a virtual environment between multiple users.
I have used this solution so far, for installing miniconda to /opt.
As root:
cd /opt
mkdir -p miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /opt/miniconda3/miniconda.sh
bash /opt/miniconda3/miniconda.sh -b -u -p /opt/miniconda3
rm -rf /opt/miniconda3/miniconda.sh
Then I logged in as the non-root user:
./opt/miniconda3/bin/conda init
Restart the shell.