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 |