Last active
February 13, 2020 09:38
-
-
Save nisanthchunduru/4608499 to your computer and use it in GitHub Desktop.
Installing nodejs on debian using checkinstall
This file contains hidden or 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 | |
############################################################## | |
# | |
# Rock-Solid Node.js Platform on Ubuntu | |
# Auto-config by apptob.org | |
# Author: Ruslan Khissamov, email: [email protected] | |
# GitHub: https://github.com/rushis | |
# | |
############################################################## | |
# Update System | |
echo 'System Update' | |
apt-get -y update | |
echo 'Update completed' | |
# Install help app | |
apt-get -y install libssl-dev pkg-config build-essential curl gcc g++ checkinstall | |
# Download & Unpack Node.js - v. 0.8.18 | |
echo 'Download Node.js - v. 0.8.18' | |
mkdir /tmp/node-install | |
cd /tmp/node-install | |
wget http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz | |
tar -zxf node-v0.8.18.tar.gz | |
echo 'Node.js download & unpack completed' | |
# Install Node.js | |
echo 'Install Node.js' | |
cd node-v0.8.18 | |
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "0.8.18" --default | |
echo 'Node.js install completed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment