Category Archives: centos

CentOS 6: Install RPM Forge Repo


Versions

  1. CentOS 6.5 x86_64

Install

Note

replace $VERSION with latest release. As of this writing it is 0.5.3-1

To discover latest major/minor, visit: http://http://pkgs.repoforge.org/rpmforge-release/


Verify

CentOS 6: Install SBT


Versions

  1. CentOS 6.5 x86_64
  2. Oracle JDK 1.7
  3. SBT 0.13.5

Install


Test

Invoke sbt to get version:

CentOS 6: Install Scala

Versions

  1. CentOS 6.5
  2. Oracle Java JDK 1.7
  3. Scala 2.11.1

Install

Note
you can get other versions at http://www.scala-lang.org/download/all.html

Configure

Add to PATH, edit /etc/profile.d/scala.sh

Load into this session:

Verify

CentOS 6: Set JAVA_HOME

Versions

  1. CentOS 6.5

Install

  1. Edit /etc/profile.d/java.sh:
    Note
    Replace $JAVA_HOME below with the absolute path to the java distribution. If Oracle JDK is installed $JAVA_HOME is /usr/java/latest

  2. Load into current session:

Verify

CentOS 6: Change existing user group

View user info:

To change existing user’s primary group:

To change existing user’s supplementary group:

CentOS 6: Install Oracle JDK


Versions

  1. CentOS 6.5

Note

After completing this guide, java-openjdk will still be a yum dependency and if not already installed, will be installed later by other packages that have the Java JDK as a dependency. There are Sun compatibility RPMs that can be downloaded to fix this, but the version support is old. For more information, see Sources below.

Install

  1. Download the appropriate file (ex: jdk-7u17-linux-x64.tar.gz) JDK from the Oracle website.

    Note

    replace $JDK_FILENAME with the name of the file

  2. Add java as alternative for /usr/bin/java:

    Note

    Default priority of open-jdk 1.7 is 170055. Replace $PRIORITY below with a number higher than the default priority.


Configure

  1. Add JAVA_HOME to environment variables

Verify


Sources

  1. https://www.redbridge.se/blog/-/blogs/properly-installing-oracle-s-jdk-on-centos-rhel-or-scientific-linux