Skip to main content

BasicSwap Update Guide

BasicSwap DEX is under active open-source development, with frequent releases introducing new features, improvements, and critical bug fixes. Maintaining your installation with regular updates ensures optimal performance and security.

This guide provides step-by-step instructions for properly updating your BasicSwap instance to the latest version.

Update a Docker Image

If you've built BasicSwap using the Docker method, follow these steps to update your instance to the most up-to-date version.

  1. Navigate to your BasicSwap's Docker folder (where BasicSwap is installed).
Terminal
cd basicswap/docker
  1. Stop the BasicSwap Docker image.
Terminal
docker-compose stop
  1. Make sure you're on the correct repository.
Terminal
git remote set-url origin https://github.com/basicswap/basicswap
  1. Pull the latest BasicSwap updates from Github.
Terminal
git pull
  1. Apply the updates to your Docker image.
Terminal
docker-compose build --no-cache
  1. Launch BasicSwap
Terminal
docker-compose up

Update Without Docker

If you installed BasicSwap directly from source rather than using Docker containers, follow the steps below to update your installation to the latest version.

tip

Linux users can simplify the update process with community-maintained automation scripts available in the basicswap-bash repository.

  1. Properly shutdown BasicSwap.

  2. Initialize the update environment by executing the following commands sequentially (one by one).

Terminal
export SWAP_DATADIR=$HOME/coinswaps
. $SWAP_DATADIR/venv/bin/activate && python3 -V
  1. Navigate to your BasicSwap folder and clear build cache.
Terminal
cd $SWAP_DATADIR/basicswap
rm -rf $SWAP_DATADIR/basicswap/build
  1. Make sure you're on the correct repository.
Terminal
git remote set-url origin https://github.com/basicswap/basicswap
  1. Pull the latest BasicSwap updates from Github.
Terminal
git pull
  1. Apply the updates to your BasicSwap instance.
Terminal
pip3 install --require-hashes -r requirements.txt
pip3 install .