Skip to content

Instantly share code, notes, and snippets.

@enberg
Last active June 15, 2018 21:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save enberg/84710b619bdb0b10e945 to your computer and use it in GitHub Desktop.
Save enberg/84710b619bdb0b10e945 to your computer and use it in GitHub Desktop.
Install rar2fs 1.20.0 on Ubuntu 14.04
#!/bin/bash
UNRARVER=5.1.1
RAR2FSVER=1.22.0
WORKDIR=`mktemp -d` && cd $WORKDIR
# Get deps
sudo apt-get -q update
sudo apt-get -qy install make libfuse-dev g++
# Get, make and install unrar
wget http://www.rarlab.com/rar/unrarsrc-$UNRARVER.tar.gz
tar zxvf unrarsrc-$UNRARVER.tar.gz
cd unrar
make && sudo make install
make lib && sudo make install-lib
cd ..
# Get, make and install rar2fs
wget https://github.com/hasse69/rar2fs/releases/download/v$RAR2FSVER/rar2fs-$RAR2FSVER.tar.gz
tar zxvf rar2fs-$RAR2FSVER.tar.gz
cd rar2fs-$RAR2FSVER
./configure --with-unrar=../unrar --with-unrar-lib=/usr/lib/
make && sudo make install
# Cleanup
rm -rf $WORKDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment