Skip to content

Instantly share code, notes, and snippets.

@teawithfruit
Last active February 22, 2016 20:40
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 teawithfruit/90f84776d3ba61565313 to your computer and use it in GitHub Desktop.
Save teawithfruit/90f84776d3ba61565313 to your computer and use it in GitHub Desktop.
Install tidy5 on Ubuntu.
#!/bin/bash
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use root to install the software."
exit 1
fi
apt-get remove libtidy-0.99-0 tidy -y
wget -O /tmp/tidy-5.0.0-64bit.deb http://www.htacg.org/binaries/binaries/tidy-5.0.0.RC1/tidy-5.0.0-64bit.deb
dpkg -i /tmp/tidy-5.0.0-64bit.deb
rm /tmp/tidy-5.0.0-64bit.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment