Skip to content

Instantly share code, notes, and snippets.

@nisanthchunduru
Last active February 13, 2020 09:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nisanthchunduru/4608499 to your computer and use it in GitHub Desktop.
Save nisanthchunduru/4608499 to your computer and use it in GitHub Desktop.
Installing nodejs on debian using checkinstall
#!/bin/sh
##############################################################
#
# Rock-Solid Node.js Platform on Ubuntu
# Auto-config by apptob.org
# Author: Ruslan Khissamov, email: rrkhissamov@gmail.com
# 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