This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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

wsl linux htslib

That is odd. You should have a /usr/local folder 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/local show?

(base) nattyht@MATEBOOKPRO:/usr/local$ ls -l /usr/local/
total 0
drwxr-xr-x 1 root root 4096 Jul 25  2018 bin
drwxr-xr-x 1 root root 4096 Jul 25  2018 etc
drwxr-xr-x 1 root root 4096 Jul 25  2018 games
drwxr-xr-x 1 root root 4096 Jul 25  2018 include
drwxr-xr-x 1 root root 4096 Jul 25  2018 lib
lrwxrwxrwx 1 root root    9 Jul 25  2018 man -> share/man
drwxr-xr-x 1 root root 4096 Jul 25  2018 sbin
drwxr-xr-x 1 root root 4096 Jul 25  2018 share
drwxr-xr-x 1 root root 4096 Jul 25  2018 src

is this the correct location?

Yes. /usr/local does 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 /mnt since those are windows partitions mounted on linux side.

0 answers

No answers yet.

Log in to answer this question.