# BioArchLinux on WSL

## Download

Download [wsl tar file](https://repo.bioarchlinux.org/wsl) from [any mirror](https://raw.githubusercontent.com/BioArchLinux/mirror/main/mirrorlist.bio) of BioArchLinux.

## Import to WSL

You have to enable wsl first. 

 - decompress the tar file
 - click the `BioArch.exe`
 
## Choose mirror

Firstly, you should  enter WSL

```
wsl -d BioArch
```

then you need to choose a mirror of archlinux and bioarchlinux

choose mirror of archlinux from [here](https://archlinux.org/mirrorlist/) and run the following command ( take sdu mirror as the example)

```
echo 'Server = https://mirrors.sdu.edu.cn/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
```

choose mirror bioarchlinux from [here](https://raw.githubusercontent.com/BioArchLinux/mirror/main/mirrorlist.bio) and run the following command ( take sdu mirror as the example)

```
echo 'Server = https://mirrors.sdu.edu.cn/bioarchlinux/$arch' > /etc/pacman.d/mirrorlist.bio
```
## Use BioArchLinux

Finally, you can install any packages from BioArchLinux
```
pacman -Syu
pacman -S foo
```

## Acknowledgment

Thanks go to [James Yang](https://github.com/llxlr) for contributing exe launcher file.
