Install rust-parallel on Ubuntu 26.04

Install rust-parallel on Ubuntu 26.04

The rust-parallel is a command-line utility for running multiple shell commands simultaneously. It helps improve the execution speed of repetitive tasks, scripting workflows, and batch operations by processing jobs in parallel. This tutorial explains how to install rust-parallel on Ubuntu 26.04.

Install rust-parallel

Fetch the latest release archive from the GitHub repository and extract the executable into a directory included in the system PATH:

curl -sSL https://github.com/aaronriekenberg/rust-parallel/releases/latest/download/rust-parallel-x86_64-unknown-linux-gnu.tar.gz \
  | sudo tar xz -C /usr/local/bin

Confirm that the installation completed successfully by displaying the rust-parallel version:

rust-parallel --version

Testing rust-parallel

A simple parallel execution test can be performed using a sequence of numbers, where each command executes concurrently and the output order may differ.

seq 1 3 | rust-parallel bash -c 'sleep 1; echo Job $0 done'

Example output:

Job 2 done
Job 1 done
Job 3 done

Uninstall rust-parallel

If decided to remove rust-parallel from the system, delete the installed executable:

sudo rm -rf /usr/local/bin/rust-parallel

Leave a Comment

Cancel reply

Your email address will not be published.