How to install Chisel¶
To install the latest version of Chisel, you can choose any of the following methods:
Install the binary¶
We publish pre-built binaries for every version of Chisel on GitHub. To install the latest Chisel binary:
Visit the latest release page to determine the latest version, for example,
v1.0.0
(update the following steps according to your desired version and architecture).Run the following command to download the file.
wget https://github.com/canonical/chisel/releases/download/v1.0.0/chisel_v1.0.0_linux_amd64.tar.gz
We publish checksum files for the release tarballs. Download the appropriate checksum file with the following command.
wget https://github.com/canonical/chisel/releases/download/v1.0.0/chisel_v1.0.0_linux_amd64.tar.gz.sha384
Verify the checksum with the following command:
sha384sum -c chisel_v1.0.0_linux_amd64.tar.gz.sha384
Extract the contents of the downloaded tarball by running:
tar zxvf chisel_v1.0.0_linux_amd64.tar.gz
Install the Chisel binary. Make sure the installation directory is included in your system’s
PATH
environment variable. For example:sudo mv chisel /usr/local/bin/
Install from source¶
Alternatively, you can install the latest version of Chisel from source:
Follow the official Go documentation to download and install Go.
After installing, you will want to add the
$GOBIN
directory to your$PATH
so you can use the installed tools. For more information, refer to the official documentation.Run the following command to build and install the latest version of Chisel:
go install github.com/canonical/chisel/cmd/chisel@latest
Install Snap¶
You can also install the latest version of Chisel from the Snap store. Run the
following command to install from the latest/stable
track:
sudo snap install chisel
Note
This snap can only install the slices in a location inside the user’s $HOME
directory, i.e. the --root
option of the cut command must point to a location
inside $HOME
.
Verify installation¶
Once the installation is complete, verify that Chisel has been installed correctly by running:
chisel
This should produce output similar to the following:
user@host:~$
chisel
Chisel can slice a Linux distribution using a release database
and construct a new filesystem using the finely defined parts.
Usage: chisel <command> [<options>...]
...