How to install Pebble¶
To install the latest version of Pebble, choose any of the following methods:
Install the binary¶
To install the binary for the latest version of Pebble:
Visit the latest release page to determine the latest tag, for example,
v1.12.0.Run the following command to download the file. Make sure to replace
v1.12.0with the latest tag andamd64with your architecture.wget https://github.com/canonical/pebble/releases/download/v1.12.0/pebble_v1.12.0_linux_amd64.tar.gzExtract the contents of the downloaded file by running:
tar zxvf pebble_v1.12.0_linux_amd64.tar.gz
Install the Pebble binary. Make sure the installation directory is included in your system’s
PATHenvironment variable.sudo mv pebble /usr/local/bin/
Install the snap¶
To install the latest version of Pebble from the Snap Store:
sudo snap install pebble --classic
For information about snaps, see the snap documentation.
Install from source¶
To install the latest version of Pebble from source:
Follow the Go installation documentation to download and install Go.
After installing, add the
$GOBINdirectory to your$PATHso you can use the installed tools. For more information, see the Go environment documentation.Run
go install github.com/canonical/pebble/cmd/pebble@latestto build and install Pebble.
Verify the Pebble installation¶
Once the installation is complete, verify that pebble has been installed correctly by running:
pebble
This should produce output similar to the following:
user@host:~$ pebble
Pebble lets you control services and perform management actions on
the system that is running them.
Usage: pebble <command> [<options>...]
...
Pebble is invoked using pebble <command>. For more information, see help.