Created
February 11, 2019 22:59
-
-
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..
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
#!/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