Identify the Latest Release: Lazygit’s official GitHub repository offers pre-compiled binaries for various operating systems. Go to the repository and check the latest version designed for Linux.
2. Download the File: Use wget
or curl
commands to retrieve it. For example:
cd /tmp
wget https://github.com/jesseduffield/lazygit/releases/download/v<VERSION>/lazygit_<VERSION>_Linux_x86_64.tar.gz
3. Verify Checksum: Whenever available, match the SHA-256 or MD5 checksum. Verifying checksums ensures the binary hasn’t been tampered with.
Installing the Lazygit Binary
1. Extract the Archive: Navigate to the directory where you downloaded the archive and run:
tar -xzf lazygit_<VERSION>_Linux_x86_64.tar.gz
2. Move Lazygit to Your System Path: By placing the binary in /usr/local/bin
or /usr/bin
, you ensure the system recognizes the command globally. For example:
sudo mv lazygit /usr/local/bin/
3. Set Permissions: Make the file executable:
sudo chmod +x /usr/local/bin/lazygit
4. Confirm Installation: Run:
lazygit --version
If the version displays correctly, Lazygit is ready to use.
https://idroot.us/install-lazygit-debian-12/