Skip to content

Instantly share code, notes, and snippets.

@tacone
Last active December 11, 2016 01:26
Show Gist options
  • Save tacone/6082520 to your computer and use it in GitHub Desktop.
Save tacone/6082520 to your computer and use it in GitHub Desktop.
Install html5 tidy on ubuntu as a deb package
#!/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
apt-get install git-core automake libtool checkinstall
mkdir /tmp/htmltidy
cd /tmp/htmltidy
git clone https://github.com/w3c/tidy-html5
cd tidy-html5
sh build/gnuauto/setup.sh && ./configure --prefix=/usr && make
checkinstall --pkgversion $(date +"%Y%m%dcvs-1")
rm /tmp/htmltidy -rf
@epileftro85
Copy link

i do not know if is a dumb question, but if you rm /tmp/htmltidy -rf where the .deb goes? i had to comment that line but hey great contribution

@teawithfruit
Copy link

Use this, to install tidy 5 from the given binary source under Ubuntu 14.04.
https://gist.github.com/teawithfruit/90f84776d3ba61565313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment