Skip to content

Installing Using a Package Manager

Tarn W. Burton edited this page Nov 1, 2022 · 13 revisions

Work is in progress to enable build and installing Clasp/Cando from package managers such as apt-get, brew, etc.

Installing on Arch using a AUR helper

Installing Clasp on Arch can be done using an AUR helper such as yay. Building in this manner using the clasp-cl-git package will build Clasp while cando-git will build Clasp and Cando. If you do not have yay installed you can install via the following commands.

pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Once yay is installed you can installation Clasp with yay clasp-cl-git or Clasp and Cando with yay cando-git.

Installing from the Nightly Homebrew Tap

Binary packages for MacOS Catalina, Big Sur and Monterey are available from the clasp-developers/clasp tap. Binary packages for Clasp and Cando are built nightly starting about 2:00 AM EST and take about 4 hours to complete. To install Clasp do the following:

brew install clasp-developers/clasp/clasp-cl

To install Cando do the following

brew install clasp-developers/clasp/cando

These Homebrew formula can be built from source by adding the --build-from-source option and can be built directly the most recent commit by adding the --HEAD option.

After the initial install, to upgrade to the latest nightly build use brew update && brew upgrade. The brew update only needs to be done occasionally to update homebrew itself.

Installing from the Nightly Linux Package Repository

Binary packages for Clasp and Cando for Linux are built nightly starting about 2:00 AM EST and take about 4 hours to complete. Currently packages are built for Ubuntu 22.04, Debian Bookworm (in testing), and Arch. To add the package repository to your local system and install either Clasp or Cando execute one of the following commands in a shell. You may need to prefix these commands with sudo for root access.

  • Clasp
    bash -c "$(curl -fsSL https://www.thirdlaw.tech/pkg/clasp.sh)"
  • Cando
    bash -c "$(curl -fsSL https://www.thirdlaw.tech/pkg/cando.sh)"

If these scripts fail to detect your Operating System then you can install manually via one of the following.

  • Debian Bookworm
    • Clasp
      curl -fsSL https://www.thirdlaw.tech/pkg/key.gpg | gpg --yes --dearmor --output /etc/apt/trusted.gpg.d/thirdlaw.gpg
      add-apt-repository "deb https://www.thirdlaw.tech/pkg/bookworm/ ./"
      apt-get update
      apt-get install clasp-cl
    • Cando
      curl -fsSL https://www.thirdlaw.tech/pkg/key.gpg | gpg --yes --dearmor --output /etc/apt/trusted.gpg.d/thirdlaw.gpg
      add-apt-repository "deb https://www.thirdlaw.tech/pkg/bookworm/ ./"
      apt-get update
      apt-get install cando
  • Ubunty Jammy
    • Clasp
      curl -fsSL https://www.thirdlaw.tech/pkg/key.gpg | gpg --yes --dearmor --output /etc/apt/trusted.gpg.d/thirdlaw.gpg
      add-apt-repository "deb https://www.thirdlaw.tech/pkg/jammy/ ./"
      apt-get update
      apt-get install clasp-cl
    • Cando
      curl -fsSL https://www.thirdlaw.tech/pkg/key.gpg | gpg --yes --dearmor --output /etc/apt/trusted.gpg.d/thirdlaw.gpg
      add-apt-repository "deb https://www.thirdlaw.tech/pkg/jammy/ ./"
      apt-get update
      apt-get install cando
  • Arch
    • Clasp
      curl -fsSL https://www.thirdlaw.tech/pkg/key.gpg | pacman-key --add -
      pacman-key --lsign-key 009C1F20737D81230A0928CBC812E10EC39DF202
      echo -e "\n[thirdlaw]\nServer = https://www.thirdlaw.tech/pkg/arch\n" >>/etc/pacman.conf
      pacman -Sy --noconfirm clasp-cl-git
    • Cando
      curl -fsSL https://www.thirdlaw.tech/pkg/key.gpg | pacman-key --add -
      pacman-key --lsign-key 009C1F20737D81230A0928CBC812E10EC39DF202
      echo -e "\n[thirdlaw]\nServer = https://www.thirdlaw.tech/pkg/arch\n" >>/etc/pacman.conf
      pacman -Sy --noconfirm cando-git
Clone this wiki locally