Skip to content

Instantly share code, notes, and snippets.

@SharkyRawr
Last active August 23, 2017 11:16
Show Gist options
  • Select an option

  • Save SharkyRawr/642d916d01fc48009dcfdcf624b2ce01 to your computer and use it in GitHub Desktop.

Select an option

Save SharkyRawr/642d916d01fc48009dcfdcf624b2ce01 to your computer and use it in GitHub Desktop.
#! /bin/bash -e
apt update && apt install pigz pixz pbzip2
cd /usr/local/bin
for f in gzip gunzip gzcat; do
ln -sv "`which pigz`" "$f"
done
for f in bzip2 bunzip bzcat; do
ln -sv "`which pbzip2`" "$f"
done
for f in xz xzcat; do
ln -sv "`which pixz`" "$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment