Skip to content

Instantly share code, notes, and snippets.

@chwe17
Created February 11, 2019 22:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chwe17/89db2526d568d1376aa780991761894f to your computer and use it in GitHub Desktop.
Save chwe17/89db2526d568d1376aa780991761894f to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment