Skip to content

Instantly share code, notes, and snippets.

@kelvinblood
Forked from papacasper/LatestNodejsInstall.sh
Last active November 25, 2016 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelvinblood/fef5a31e69b099c3a0225a12481923d7 to your computer and use it in GitHub Desktop.
Save kelvinblood/fef5a31e69b099c3a0225a12481923d7 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Update System
echo "System Update"
apt-get -y update
echo "Update completed"
# Install help app
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v. 6.9.1
echo "Download Node.js - v6.9.1"
mkdir /tmp/node-install
cd /tmp/node-install
wget https://nodejs.org/dist/v6.9.1/node-v6.9.1.tar.gz
tar -zxf node-v6.9.1.tar.gz
echo "Node.js download & unpack completed"
# Install Node.js
echo "Compiling and installing Node.js"
cd node-v6.9.1
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "6.9.1" --default
echo "Node.js install completed! Deleting The /tmp files"
rm -rf /tmp/node-install
echo "If you have made it this far in the script with no errors popping up all is well have a good day"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment