CentOS安装java and javac(java运行环境和开发环境)
2014-06-17 08:43
441 查看
[root@localhost usr]# yum install java
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Package 1:java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64 already installed and latest version
Nothing to do
[root@localhost usr]# yum search jdk
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
=============================== N/S Matched: jdk ===============================
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
ldapjdk-javadoc.x86_64 : Javadoc for ldapjdk
icedtea-web.x86_64 : Additional Java components for OpenJDK - Java browser
: plug-in and Web Start implementation
ldapjdk.x86_64 : The Mozilla LDAP Java SDK
Name and summary matches only, use "search all" for everything.
[root@localhost usr]# yum install java*jdk*devel* 不知道名称可以使用通配符
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be installed
--> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-5.1.13.3.el6_5 for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-5.1.13.3.el6_5.x86_64
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5 will be installed
--> Running transaction check
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be installed
--> Processing Dependency: rhino for package: 1:java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.x86_64
--> Running transaction check
---> Package rhino.noarch 0:1.7-0.7.r2.2.el6 will be installed
--> Processing Dependency: jline for package: rhino-1.7-0.7.r2.2.el6.noarch
--> Running transaction check
---> Package jline.noarch 0:0.9.94-0.8.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
java-1.6.0-openjdk-devel x86_64 1:1.6.0.0-5.1.13.3.el6_5 updates 15 M
java-1.7.0-openjdk-devel x86_64 1:1.7.0.55-2.4.7.1.el6_5 updates 9.4 M
Installing for dependencies:
java-1.6.0-openjdk x86_64 1:1.6.0.0-5.1.13.3.el6_5 updates 41 M
jline noarch 0.9.94-0.8.el6 base 86 k
rhino noarch 1.7-0.7.r2.2.el6 base 778 k
Transaction Summary
================================================================================
Install 5 Package(s)
Total download size: 66 M
Installed size: 132 M
Is this ok [y/N]: n 这里列出两个符合通配符的jdk, 所以我不安装两个
Exiting on user Command
[root@localhost usr]# yum install java-1.7.0-openjdk-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.esocc.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
java-1.7.0-openjdk-devel x86_64 1:1.7.0.55-2.4.7.1.el6_5 updates 9.4 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 9.4 M
Installed size: 36 M
Is this ok [y/N]: y
Downloading Packages:
java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64.r | 9.4 MB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64 1/1
Verifying : 1:java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64 1/1
Installed:
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5
Complete!
[root@localhost usr]#
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Package 1:java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64 already installed and latest version
Nothing to do
[root@localhost usr]# yum search jdk
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
=============================== N/S Matched: jdk ===============================
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
ldapjdk-javadoc.x86_64 : Javadoc for ldapjdk
icedtea-web.x86_64 : Additional Java components for OpenJDK - Java browser
: plug-in and Web Start implementation
ldapjdk.x86_64 : The Mozilla LDAP Java SDK
Name and summary matches only, use "search all" for everything.
[root@localhost usr]# yum install java*jdk*devel* 不知道名称可以使用通配符
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be installed
--> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-5.1.13.3.el6_5 for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-5.1.13.3.el6_5.x86_64
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5 will be installed
--> Running transaction check
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be installed
--> Processing Dependency: rhino for package: 1:java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.x86_64
--> Running transaction check
---> Package rhino.noarch 0:1.7-0.7.r2.2.el6 will be installed
--> Processing Dependency: jline for package: rhino-1.7-0.7.r2.2.el6.noarch
--> Running transaction check
---> Package jline.noarch 0:0.9.94-0.8.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
java-1.6.0-openjdk-devel x86_64 1:1.6.0.0-5.1.13.3.el6_5 updates 15 M
java-1.7.0-openjdk-devel x86_64 1:1.7.0.55-2.4.7.1.el6_5 updates 9.4 M
Installing for dependencies:
java-1.6.0-openjdk x86_64 1:1.6.0.0-5.1.13.3.el6_5 updates 41 M
jline noarch 0.9.94-0.8.el6 base 86 k
rhino noarch 1.7-0.7.r2.2.el6 base 778 k
Transaction Summary
================================================================================
Install 5 Package(s)
Total download size: 66 M
Installed size: 132 M
Is this ok [y/N]: n 这里列出两个符合通配符的jdk, 所以我不安装两个
Exiting on user Command
[root@localhost usr]# yum install java-1.7.0-openjdk-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.esocc.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
java-1.7.0-openjdk-devel x86_64 1:1.7.0.55-2.4.7.1.el6_5 updates 9.4 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 9.4 M
Installed size: 36 M
Is this ok [y/N]: y
Downloading Packages:
java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64.r | 9.4 MB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64 1/1
Verifying : 1:java-1.7.0-openjdk-devel-1.7.0.55-2.4.7.1.el6_5.x86_64 1/1
Installed:
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.55-2.4.7.1.el6_5
Complete!
[root@localhost usr]#
相关文章推荐
- CentOS安装java and javac(java执行环境和开发环境)
- 在CentOS上安装Java开发环境:使用yum安装jdk
- centOs7下安装docker并搭建运行java项目环境
- CentOS6.5之Java开发环境—JDK1.8的安装配置—逆袭必备
- 【Linux】【Java】CentOS7安装最新版Java1.8.191运行开发环境
- ubuntu14.04,安装JDK1.8(JAVA程序需要的开发、运行环境)
- 二、java运行环境按照之-linux centos下安装jdk步骤【rpm安装方式】
- windows安装java开发环境后出现javac无法使用的问题
- ubuntu14.04,安装JDK1.8(JAVA程序需要的开发、运行环境)
- Linux(CentOS)下安装Java运行环境(jdk)
- 阿里云服务器centos6.5安装java运行环境
- Java开发环境搭建(JDK及其安装、运行第一个java程序)
- 一、java运行环境安装之-linux centos6.6安装mysql 5.6安装步骤【rpm安装方式】
- centos7.3安装java开发环境
- centos下使用yum安装jdk java环境安装 activeMQ运行环境 tomcat安装
- Centos 7 安装 Java 开发环境
- Centos7.4 安装java开发环境(lnmt)Linux + Nginx+ MySQL+ Tomcat
- 重新安装win7后的java开发环境eclipse and postgresql