> ## Content Index
> Fetch the complete content index at: https://developerinsider.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# Install Apple Swift on Windows 10/11 Subsystem for Linux (WSL)
- URL: https://developerinsider.co/install-apple-swift-on-windows-10-subsystem-for-linux-wsl/
- Published: 2016-11-13T17:02:46.000Z
- Updated: 2023-09-04T06:28:11.000Z
- Author: Vineet Choudhary
- Tags: Wiki, Windows, Swift, Downloads, Swift4, iOS

As you know, Microsoft built new infrastructure within Windows – the Windows Subsystem for Linux (WSL) – upon which we run a genuine Ubuntu user-mode image provided by Microsoft great partners over at Canonical, creators of Ubuntu Linux. The result is that you can now run native Bash on Ubuntu on Windows.

If you don't have a enable Ubuntu on Windows check out [stepwise Guide to Enable Windows 10’s Ubuntu Bash Shell (Windows Subsystem for Linux).](https://developerinsider.co/stepwise-guide-to-enable-windows-10-subsystem-for-linux/) Here the step-vise guide to Install Swift on Windows 10 -

## 1\. Open bash and move to root:

- To open `bash` open Run (Windows Key + R) then type bash and hit enter.  
![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/RunBash.png?raw=true)
- Move to Root: Type `cd` and hit enter  
```sh  
cd  
```  
![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/2/cd.png?raw=true)

## 2\. Install required dependencies:

```sh
apt-get install clang libicu-dev

```

![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/2/installde.png?raw=true)

## 3\. Download the latest swift binary release

- Download the latest version of [Swift binary for latest version of Ubuntu from here](https://swift.org/download/?ref=developerinsider.co#releases)
- Create a folder with name `Swift` in C drive
- Copy downloaded swift binary in this folder
- Type this command to change directory  
```sh  
cd /mnt/c/Swift  
```

## 4\. Install Swift

Replace `swift-3.0.1-RELEASE-ubuntu14.04.tar.gz` with download file name and run this command -

```sh
tar -zxvf swift-3.0.1-RELEASE-ubuntu14.04.tar.gz

```

![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/2/installswift.png?raw=true)

## 5\. Change directory to swift compiler bin

```sh
cd swift-3.0.1-RELEASE-ubuntu14.04/usr/bin

```

## 6\. Write your first program

![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/2/nano.png?raw=true)

![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/2/nanoswift.png?raw=true)

## 7\. Compile and Runt

To Compile your program type

```sh
./swiftc helloworld.swift

```

To Run your program type

```sh
./helloworld

```

![](https://github.com/developerinsider/developer-insider-content/blob/master/POST/SwiftOnWindows/2/nanorun.png?raw=true)

**Next** \- [Introduction to Swift](https://developerinsider.co/introduction-to-swift-swift-programming-language/)