Showing posts from October, 2017

Install PIP on CentOS 7

Python is widely used programing language and pip is the tool need to install different python packages.

Before you go ahead check if you have pip installed by using command below.
$ pip --version pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
You can install pip in multiple ways on CentOS. I will discuss here two ways to install pip. 

Install PIP using yup

Update the packages first, just to be updated.
$ yum -y update Once update is complete, you can run below command to install the pip. 

$ yum -y install python-pip If you get error, did not found anything to install python-pip then you need to enable Extra Packages for Enterprise Linux (EPEL) repository, as python-pip is part of EPEL repo. If you don't want to enable EPEL repo then you can use other installation method.

Install PIP using curl

First step is to download the python script to install pip. 
$ curl "" -o "" Once the script is downloaded you can run…

Setup python 2.7 on CentOS 7

Python is most commonly used development and scripting tool. You can setup Python on CentOS by multiple ways.

Setup Python using Yum

This is simplest method to install development tools on CentOS. Run below commands to setup the python using yum.
[vagrant@localhost ~]$ sudo yum -y update [vagrant@localhost ~]$ sudo yum groupinstall -y development Or
[vagrant@localhost ~]$ sudo yum groupinstall -y 'development tools'
Setup Python using source code

To setup python using source code, you would first download the source code for the version you want to install. Then build the source code and configure.

You can use "wget" command to download the compressed source code. If you don't have wget installed, use yum to install wget as below.
[vagrant@localhost ~]$ sudo yum install wget You would need "xz" tool to decode the source code.
[vagrant@localhost ~]$ sudo yum install xz-libs Now you are ready to download the source code. 
Download the source code for python 2.7.6 usin…

How to Install Java 8 on CentOS 7

Java is most common requirement for many of the Open Source softwares. You can follow below steps to install Java on CentOS vm.

You can first check the list of available packages for Java using below command.

$ yum search java | grep 'java-'

You will get the list like above. Now depending on what is your requirement you can choose the package. If you don't see any list as above, you will need to update the REPO for java.

To install JRE you can run below command.

$ sudo yum install java-1.8.0-openjdk.x86_64
To install JDK you can use below command.

$ sudo yum install java-1.8.0-openjdk*
The above commands will ask for downloading the required dependencies, press Y and enter to continue with installation. Once installation completes it will display the dependencies installed and complete message.

Now you can verify the installation by running below command.

$ java -version openjdk version "1.8.0_144" OpenJDK Runtime Environment (build 1.8.0_144-b01) OpenJDK 64-Bit Server…