Situatie
Solutie
Let’s see how you can install it on your Linux system. For the demonstration, I’ll be using Ubuntu 24.04 LTS. But the commands I show apply to other Linux distros too. To install cheat, you can use a one-liner installation command below. Before running the command, make sure to check the GitHub release page and use the latest version (it’s 4.4.2 for me) as well as the correct package for your system in the command.
cd /tmp \
&& wget https://github.com/cheat/cheat/releases/download/4.4.2/cheat-linux-amd64.gz \
&& gunzip cheat-linux-amd64.gz \
&& chmod +x cheat-linux-amd64 \
&& sudo mv cheat-linux-amd64 /usr/local/bin/cheat
The command downloads the package, unzips it, gives it executable permission, and moves it to the “/usr/local/bin” directory.
If you have Go installed, you can also use it to install cheat.
go install github.com/cheat/cheat/cmd/cheat@latest
There are also community-maintained packages that you can install via a package manager. For example, if you have Snap enabled, you can install it with:
sudo snap install cheat
To verify the installation, you can run:
cheat --version
After successfully installing cheat, you need to do three things:
- Generate a configuration file
- Configure cheatpaths
- Download the Community cheatsheets.
Fortunately, all of these will be done automatically when you run cheat for the first time.
Leave A Comment?