Created
February 13, 2014 20:01
-
-
Save lambdalisue/8982695 to your computer and use it in GitHub Desktop.
A script to install pbzip2 (CentOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION="1.1.8" | |
NAME="pbzip2-$VERSION" | |
FILENAME="$NAME.tar.gz" | |
URL="http://compression.ca/pbzip2/$FILENAME" | |
if [[ ! -f "$FILENAME" ]]; then | |
echo "Download $NAME..." | |
curl -o $FILENAME $URL | |
fi | |
if [[ ! -d "$NAME" ]]; then | |
echo "Unpacking $FILENAME" | |
tar xzf $FILENAME | |
fi | |
cd $NAME | |
echo "Make and install (via paco)" | |
./configure | |
make | |
sudo paco -D make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment