Install Parallel On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

Install Parallel On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

parallel

Run commands on multiple CPU cores.

Maintainer: Rogu00e9rio Brito



Section: utils

Install parallel

  • Debian apt-get install parallel Click to copy
  • Ubuntu apt-get install parallel Click to copy
  • Alpine OS apk add parallel Click to copy
  • Arch Linux pacman -S parallel Click to copy
  • Kali Linux apt-get install parallel Click to copy
  • Fedora dnf install parallel Click to copy
  • Raspbian apt-get install parallel Click to copy
  • macOS brew install parallel Click to copy

Run commands on multiple CPU cores.

How to use parallel?

Below are few example commands for parallel that you can use in the terminal.

Gzip several files at once, using all cores:
parallel gzip ::: file1 file2 file3Click to copy
Read arguments from stdin, run 4 jobs at once:
ls *.txt | parallel -j4 gzipClick to copy
Convert JPG images to PNG using replacement strings:
parallel convert {} {.}.png ::: *.jpgClick to copy
Parallel xargs, cram as many args as possible onto one command:
args | parallel -X commandClick to copy
Break stdin into ~1M blocks, feed each block to stdin of new command:
cat big_file.txt | parallel --pipe --block 1M commandClick to copy
Run on multiple machines via SSH:
parallel -S machine1,machine2 command ::: arg1 arg2Click to copy
Installation of latest parallel command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2024 latest package from the repository and install it in your computer/server.