Last active
June 5, 2021 01:02
-
-
Save papacasper/8d356a38a44ea595c2c1 to your computer and use it in GitHub Desktop.
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/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" |
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"
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"
Thanks a bunch! Saved my day 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update please to v6.2.0