- Hands-On Server-Side Web Development with Swift
- Angus Yeung
- 125字
- 2021-06-10 19:00:13
Option 1 – using script to clone Vapor packages
On Ubuntu, you can use Vapor's APT repository to get access to all of Vapor's packages.
If you don't have curl on your system, use this command to install curl first:
# Step 2a: Prepare the curl tool on Ubuntu $ sudo apt-get install curl
Now, you can use this script to add Vapor's APT repository to the source list:
# Step 2b: Use script to add Vapor APT repo $ eval "$(curl -sL https://apt.vapor.sh)"
If you have any problem with the script approach here, you can jump to option 2 in the next section to clone Vapor packages manually on Ubuntu. Otherwise, you're all set to continue the installation of Vapor on your Ubuntu.