Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing java - should I use the .rpm file or the .tar.gz?

I am looking to install java on Linux Ubuntu 64-bit. Should I use the .tar files or the .gz files. Download speed is not an issue. I'm not interested in tons of details I just would like to pick one. I will be doing application development, though not in java itself which I don't know/use. It is needed for other products that I run like rubyMine for developing ruby applications.

like image 775
Michael Durrant Avatar asked Dec 05 '11 16:12

Michael Durrant


People also ask

Where should I install JDK Linux?

After the installation process is complete, jdk and jre are installed to /usr/lib/jvm/<java> directory, where <java> is the actual java installation folder. For example, /usr/lib/jvm/java-6-sun .

What is difference between tar and RPM?

During upgrades, RPM handles configuration files carefully, so that you never lose your customisation, that you cannot accomplish with regular . tar files. RPM feature has the ability to verify packages. If you deleted an important file for some package, you can verify the package.


2 Answers

If both install and work for you, it doesn't matter which one you choose. both formats accomplish the same thing, and result in the same software being installed.

Another option in Ubuntu is using apt-get install, which is very simple, and automates the process.

like image 84
jefflunt Avatar answered Oct 22 '22 16:10

jefflunt


I would recommend using apt-get install, it's cleaner.

like image 20
Tudor Avatar answered Oct 22 '22 17:10

Tudor