Install Ouch on Ubuntu 24.04

Install Ouch on Ubuntu 24.04

The Ouch command line tool is designed for managing file compression and decompression operations. It aims to be simple, fast, and user-friendly, providing support for multiple archive formats. This tutorial explains how to install Ouch on Ubuntu 24.04.

Install Ouch

Get the most recent version of Ouch from GitHub:

wget -qO ouch.tar.gz https://github.com/ouch-org/ouch/releases/latest/download/ouch-x86_64-unknown-linux-musl.tar.gz

Create temporary directory and extract a tar.gz file:

mkdir ouch-temp
tar xf ouch.tar.gz --strip-components=1 -C ouch-temp

Move executable to /usr/local/bin directory:

sudo mv ouch-temp/ouch /usr/local/bin

We can verify Ouch version as follows:

ouch --version

Remove downloaded file and temporary directory:

rm -rf ouch.tar.gz ouch-temp

Testing Ouch

Create file for testing purpose:

echo 'Hello' > test.txt

Provide input files to the compress sub-command, then specify the output file at the end:

ouch compress test.txt test.zip

Use the decompress sub-command and provide archive name:

ouch decompress test.zip

Uninstall Ouch

To uninstall Ouch, remove the related file:

sudo rm -rf /usr/local/bin/ouch

Leave a Comment

Cancel reply

Your email address will not be published.