Skip to content

Instantly share code, notes, and snippets.

@chwe17
chwe17 / unrar.sh
Created February 11, 2019 22:59
trivial fix of https://gist.github.com/VadimBrodsky/1f567067e2cd438312bb9fd57095a806 so that it's really a script..
#!/bin/bash
# make it executable with: sudo chmod a+x unrar.sh
# execute with: sudo ./unrar.sh
sed -i 's+#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi+deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi+g' /etc/apt/sources.list
cd $(mktemp -d) && apt-get update && apt-get build-dep unrar-nonfree && apt-get source -b unrar-nonfree && dpkg -i unrar*.deb