3

I want to install Miniconda but I don't want to do so as root. Is there a directory (except ~/) where I can install external software as a non-root user?

I don't want to install it in the default directory ~/miniconda3

1
  • I found this question because I dont want clutter in my home directory. I wound up going with ~/.miniconda3/ Jan 20, 2022 at 19:36

2 Answers 2

1

I think you are confusing ~/ with /. ~/ is your home directory not your root directory. Where as / will be your root directory where you'll find /home/USER/ which is longhand for ~/.

1
  • 1
    Thanks, but I am not confusing ~/ with /. I just want to install miniconda in a directory besides the home directory.
    – Bill
    May 25, 2018 at 13:33
0

Do you have root access? Most of the time, to edit folders that are not in your home directory, you need to have sudo or root access. If you have root access, you can always make a folder wherever and then change the ownership using sudo chown *user* /path/to/folder. Then, user will be able to install packages to that folder. If you don't have root or sudo privileges, then you're stuck using your home folder unless you ask the system admin to make a directory elsewhere for you.

I usually put other packages in the /opt folder and none of them are used as root. However, I did install them using sudo, then changed the ownership to the appropriate user after the fact.

Not the answer you're looking for? Browse other questions tagged .