# New Swift Package Repository for Ubuntu/Debian Linux Distributions

**URL:** <https://forums.swift.org/t/new-swift-package-repository-for-ubuntu-debian-linux-distributions/50412>\
**Category:** Community Showcase\
**Tags:** linux, ubuntu\
**Created:** [July 13, 2021, 12:33pm UTC](https://forums.swift.org/t/new-swift-package-repository-for-ubuntu-debian-linux-distributions/50412 "2021-07-13T12:33:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![futurejones](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/futurejones/32/13428_2.png) [@futurejones](https://forums.swift.org/u/futurejones)\
**Post date:** [July 13, 2021, 12:33pm UTC](https://forums.swift.org/t/new-swift-package-repository-for-ubuntu-debian-linux-distributions/50412/1 "2021-07-13T12:33:54Z")

</div>

Hi everybody,  
I have set up a new Swift apt package repository for easy install of Swift on Ubuntu/Debian Linux distributions using the apt package manager.  
[https://swiftlang.xyz](https://swiftlang.xyz)

### Repository Install and Usage

There are 2 simple steps to use the repository:-

1. Install the package repository using the quick install script.  
`curl -s https://swiftlang.xyz/install.sh | sudo bash`

2. Install Swift  
`sudo apt install swiftlang`

#### The repository supports the following distributions and architectures -

- Ubuntu 18.04 / 20.04 / 21.04 - x86\_86 / amd64 / aarch64 / arm64 / armv7
- Debian 10 / buster - x86\_86 / amd64 / aarch64 / arm64 / armv7 / armhf
- Raspbian buster - aarch64 / arm64 / armv7 / armhf

#### The Swift .deb packages are created from the following sources -

- x86\_64/amd64 - [Redirecting…](https://swift.org/download/)
- aarch64/arm64 - [Releases · futurejones/swift-arm64 · GitHub](https://github.com/futurejones/swift-arm64/releases)
- armv7/armv6/armhf - [Releases · uraimo/buildSwiftOnARM · GitHub](https://github.com/uraimo/buildSwiftOnARM/releases)

#### Swift package versions are as follows -

- All 64bit versions are Swift 5.4.1-Release
- All 32bit versions are Swift 5.1.5-Release

The repository uses all the standard Ubuntu/Debian security and digital signing certificates as well as ssl site encryption.

#### Current packages available are -

```bash
/var/www/swiftlang.xyz/public_html/ubuntu ~
swiftlang | 5.4.1-01-ubuntu18.04 | bionic | amd64
swiftlang | 5.4.1-7-ubuntu-bionic | bionic | arm64
swiftlang | 5.4.1-01-ubuntu20.04 | focal | amd64
swiftlang | 5.4.1-15-ubuntu-focal | focal | arm64
swiftlang | 5.4.1-8-ubuntu-hirsute | hirsute | arm64
~
/var/www/swiftlang.xyz/public_html/debian ~
swiftlang | 5.4.1-8-debian-buster | buster | arm64
swiftlang | 5.1.5-01-debian-buster | buster | armv7
~
/var/www/swiftlang.xyz/public_html/raspbian ~
swiftlang | 5.1.5-01-raspbian-buster | buster | armhf
~

```

### Uninstall Repository

You can remove the repository use if you need to using -  
`curl -s https://swiftlang.xyz/remove.sh | sudo bash`

### Testing with Docker

If you wish to test the repository without installing on your main system the easiest way is to use a docker container.

```bash
# start a ubuntu 20.04 docker container 
docker run --security-opt seccomp=unconfined -it ubuntu:20.04 /bin/bash 
# inside the container
apt update
apt install curl
curl -s https://swiftlang.xyz/install.sh | bash
apt install swiftlang

```

## Moving Forward

The main motivation behind creating this repository is as a `'proof of concept'` for an official [Swift.org](http://Swift.org) apt repository. To explore and test the technologies required and provide a real world testing environment.

Please try out the repository and provide feedback on your experiences.

I have included a live `Usage Statistics` page on the website to track usage and get an idea of what hardware requirements will be needed.

Thanks for your time and I look forward to your feedback.

---

_[View the full topic](https://forums.swift.org/t/new-swift-package-repository-for-ubuntu-debian-linux-distributions/50412)._
