Saturday, September 24, 2016

Removing OPENJDK from CENTOS on VirtualBox


Step 1: Check the OpenJDK files using this command

rpm -qa | grep jdk

The output should be something like:








Step 2: Use the command:

sudo yum remove java-1.7.0-openjdk-headless-1.7.0.91-2.6.2.3.el7.x86_64

Continue using this command to remove the entries you get from the rpm command.

Step 3: Check whether any entries are left using the command used in Step 1.

As simple as that!! Isn't it!!

Express JS installation commands on NodeJS 4.5.0


I installed nodeJS 4.5.0.

Then struggled to install ExpressJS.

Later on, found the solution at the following site:

https://github.com/expressjs/express

Use the commands below (Windows 7 64 bit) in the command prompt:

1. npm install -g express-generator

This installs all the express dependencies and modules.

2. express expressjs && cd expressjs

This sets up the folder "express" to load all the needed files for installation.

3. npm install

This installs the expressjs package.

4. npm start

This starts the server.