Where should I install packages on WSL
When using linux the usual location for downloading and installing packages locally is /usr/local
Windows Subsystem for Linux does not have this folder.
What is an appropriate equivalent folder that I should use when using WSL?
Folders I am considering are: /mnt/c/Users/Natha/AppData/Local or /home/nattyht perhaps these are both incorrect folders to use...?
I am using the ubuntu subsytem downloaded from the microsoft store.
For reference I am looking to download and install the package 'htslib' (http://www.htslib.org/download/) for use with 'Majiq' (https://majiq.biociphers.org/)
Many thanks in advance,
Nathan
• 5,994 views
•
link
0 answers
No answers yet.
Log in to answer this question.
That is odd. You should have a
/usr/localfolder in your ubuntu install. If not you can create one.Sorry I think I found the /usr/local folder.
Have you checked to see if the folder is there? What does
ls -l /usr/localshow?is this the correct location?
Yes.
/usr/localdoes not have to be the location where packages are installed. You will need to make sure the directory where the package is installed is in$PATH, if you install it somewhere else.Don't use any location under
/mntsince those are windows partitions mounted on linux side.