Skip to content

Instantly share code, notes, and snippets.

@papacasper
Last active June 5, 2021 01:02
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save papacasper/8d356a38a44ea595c2c1 to your computer and use it in GitHub Desktop.
Save papacasper/8d356a38a44ea595c2c1 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Update System
echo "System Update"
apt-get -y update
echo "Update completed"
# Installing the applications needed to build Nodejs
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v7.3.0
echo "Download Node.js - v7.3.0"
mkdir /tmp/node-install
cd /tmp/node-install
wget https://nodejs.org/dist/latest/node-v7.3.0.tar.gz
tar -zxf node-v7.3.0.tar.gz
echo "Node.js download & unpack completed"
# Install Node.js
echo "Compiling and installing Node.js"
cd node-v7.3.0
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "7.3.0" --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"
@mark-szabo
Copy link

mark-szabo commented May 19, 2016

Update please to v6.2.0

#!/bin/sh
# Update System
echo "System Update"
apt-get -y update
echo "Update completed"
# Install help app
apt-get install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v. 6.2.0
echo "Download Node.js - v6.2.0"
mkdir /tmp/node-install
cd /tmp/node-install
wget https://nodejs.org/dist/latest/node-v6.2.0.tar.gz
tar -zxf node-v6.2.0.tar.gz
echo "Node.js download & unpack completed"
# Install Node.js
echo "Compiling and installing Node.js"
cd node-v6.2.0
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "6.2.0" --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"

@0x006E
Copy link

0x006E commented Dec 16, 2017

Update - node version v9.3.0

#!/bin/sh
# Update System
echo "System Update"
apt-get -y update
echo "Update completed"
# Installing the applications needed to build Nodejs
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v9.3.0
echo "Download Node.js - v9.3.0"
mkdir /tmp/node-install
cd /tmp/node-install
wget https://nodejs.org/dist/v9.3.0/node-v9.3.0.tar.gz
tar -zxf node-v9.3.0.tar.gz
echo "Node.js download & unpack completed"
# Install Node.js
echo "Compiling and installing Node.js"
cd node-v9.3.0
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "9.3.0" --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" 

@PABlond
Copy link

PABlond commented May 8, 2018

Update - node version v10.0.0


#!/bin/sh
# Update System
echo "System Update"
apt-get -y update
echo "Update completed"
# Installing the applications needed to build Nodejs
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v10.0.0
echo "Download Node.js - v10.0.0"
mkdir /tmp/node-install
cd /tmp/node-install
wget https://nodejs.org/dist/latest/node-v10.0.0.tar.gz
tar -zxf node-v10.0.0.tar.gz
echo "Node.js download & unpack completed"
# Install Node.js
echo "Compiling and installing Node.js"
cd node-v10.0.0
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "10.0.0" --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"

@hmol
Copy link

hmol commented May 30, 2019

Thanks a bunch! Saved my day 👍

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