How to install Maven into Red Hat Enterprise Linux 6?
The distro agnostic generic repo is what you want. As root, add a couple of the jpackage-generic repos to yum (two snippets below). Then perform a yum update and finally yum install maven2.
cat > /etc/yum.repos.d/jpackage-generic-free.repo << EOF
[jpackage-generic-free]
name=JPackage generic free
baseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/free/
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
EOF
cat > /etc/yum.repos.d/jpackage-generic-devel.repo << EOF
[jpackage-generic-devel]
name=JPackage Generic Developer
baseurl=http://mirrors.dotsrc.org/jpackage/6.0/generic/devel/
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
EOF
How to install maven on redhat linux
Go to mirror.olnevhost.net/pub/apache/maven/binaries/ and check what is the latest tar.gz file
Supposing it is e.g. apache-maven-3.2.1-bin.tar.gz, from the command line; you should be able to simply do:
wget http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-3.2.1-bin.tar.gz
And then proceed to install it.
UPDATE: Adding complete instructions (copied from the comment below)
- Run command above from the dir you want to extract maven to (e.g. /usr/local/apache-maven)
run the following to extract the tar:
tar xvf apache-maven-3.2.1-bin.tar.gz
Next add the env varibles such as
export M2_HOME=/usr/local/apache-maven/apache-maven-3.2.1
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
Verify
mvn -version
Installing Maven 3.0.5 in RedHat Linux
The first thing we need to do is to download the Maven tar file and untar it to a shared location on the workstation
wget http://mirrors.gigenet.com/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
su -c "tar -zxvf apache-maven-3.0.5-bin.tar.gz -C /opt/"
Setup the Maven Environment Variables in shared profile.
The next step is to setup the Maven environment variables in a shared profile so all users on the system will get them import at login time.
su -c "vi /etc/profile.d/maven.sh"
# Add the following lines to maven.sh
export M2_HOME=/opt/apache-maven-3.0.5
export M2=$M2_HOME/bin
PATH=$M2:$PATH
Now test your install of Maven.
Logout of the system and then log back into it. Enter the following command:
[jsmith@regan ~]$ mvn -version
If you did everything right your output should look something like the one below:
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500)
Maven home: /opt/apache-maven-3.0.5
Java version: 1.7.0_19, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.2.1.el6.i686", arch: "i386", family: "unix"
How do you enable a graphical interface for the Red Hat Enterprise Linux Client download?
Figured it out. You need more than 512mb + 128mb of ram for rhel 6 to install a graphical interface. just increased the size allocated in virtual box and it worked
R: Installing MonetDBLite 0.2.0 under Red Hat Enterprise Linux Server 6.7
I would say please don't use icc for MonetDBLite.
Unable to install openJDK 8 in Red Hat
If your version is too old you don't have the packages included or you have to enable some more repositories first to get the packages.
To list enabled repos:
subscription-manager repos --list-enabled
To enable third party repo:
subscription-manager repos --enable rhel-7-server-optional-rpms
When your version isn't to old you can make an yum update
and fetch all new packages. Then you should be able to install JDK 8. Here is another good tutorial how to install JDK-8 on Red-Hat.
https://developers.redhat.com/articles/using-java-rhel-7-openjdk-8/
If you use an older Red-Hat version you have to install it on your own.
https://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/
How to install Mercurial on my Red Hat Linux machine without using yum command?
After you download mercurial from its website:
Right-click on the icon (in your downloads folder), and under properties click the box that says "make executable" or something similar. Then double-click on it, and it should install...
Related Topics
Trying to Use Bash on Windows and Got No Installed Distributions Message
How to Run Nohup and Write Its Pid File in a Single Bash Statement
How to Install Chkconfig on Ubuntu
Is Usb Supported on Bash on Ubuntu on Windows 10
Indenting Multi-Line Output in a Shell Script
How to Schedule Tcpdump to Run for a Specific Period of Time
Display Only Files and Folders That Are Symbolic Links in Tcsh or Bash
New to Linux Kernel/Driver Development
How to Diff a Directory for Only Files of a Specific Type
How to Execute a Series of Commands in a Bash Subshell as Another User Using Sudo
How to Copy File from a Vagrant MAChine to Localhost
How to Calculate System Memory Usage from /Proc/Meminfo (Like Htop)
Linux, Why Can't I Write Even Though I Have Group Permissions
What Are My Environment Variables
Rm Fails to Delete Files by Wildcard from a Script, But Works from a Shell Prompt