How to install jdk 6u17 in a prompt-less script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to install jdk 6u17 in a prompt-less script
# 1  
Old 12-17-2009
How to install jdk 6u17 in a prompt-less script

I came across this site while Googling for how to silently install JDK 6u17. I didn't find a solution, but I came up with this hack so I thought I'd post it here:

The trick is to just temporarily disable the "more" application:

]# chmod u+x jdk-6u17-linux-x64-rpm.bin
]# # Prevent prompts...
]# mv /bin/more /bin/moremore
]# echo "yes" | ./jdk-6u17-linux-x64-rpm.bin
]# # Restore prompts...
]# mv /bin/moremore /bin/more

- Matt H
- Intuitlabs.com
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Fedora: Uninstall Java JDK 1.8 and install Oracle Java 1.7.15

Hi All, I have just downloaded fedora 27 iso and set it up in virtual box. I want to learn Hadoop so trying to install Apache hadoop. Before all those I have to install Oracle Java 1.7.15 (as mentioned in the Apache hadoop page). Can you please help me how to Uninstall currently installed... (6 Replies)
Discussion started by: TechGyaann
6 Replies

2. Solaris

How to install java (jdk-74) on solaris 10?

What kind of required java type for installed? which address link, i need to download the package. i have zcat this version jdk-7-solaris-sparc.tar.Z and then installed each the packages with pkgadd -d . , but my java version still java full version "1.5.0_24-b02".is it need doanything after... (1 Reply)
Discussion started by: aagusman
1 Replies

3. Shell Programming and Scripting

[Solved] trying to install pecl without having it prompt for a yes m

I want to install pecl from a single command without it asking me for a response of "yes" or "no" to finish the install... -------------------------------------------------------------------------- # pecl install pecl_http downloading pecl_http-1.7.0.tgz ... Starting to download... (1 Reply)
Discussion started by: sjsotelo
1 Replies

4. Shell Programming and Scripting

how to Install jdk.bin using shell script with auto yes/no?

#!/bin/sh echo "Installing Java!!!" cd /opt echo "Want to give execute Permissions to java!!!" chmod 755 jdk-6u7-linux-i586.bin echo "Executing the jdk script" ./jdk-6u7-linux-i586.bin This is the shell commands I am using... I want to know how to give answer to yes and no automatically... (6 Replies)
Discussion started by: sandeepbharmori
6 Replies

5. Shell Programming and Scripting

How to Upgrade Jdk After install in linux

hii... i want to upgrade my java version 1.4.2 to 1.6 in linux plateform after installing JDK. so what are the steps & commands in linux to upgrade it . Please Help me ... (1 Reply)
Discussion started by: rinkugarg
1 Replies

6. UNIX for Dummies Questions & Answers

Download & install JDK 1.6

Hi.. I want to download & install JDK 1.6 for linux so please help me where i can downlod it free Regards Rinku Garg (1 Reply)
Discussion started by: rinkugarg
1 Replies

7. Solaris

error during install jdk 5.0.11 packages

hi all i tried to install jdk on solaris 10 2008 and i used these packages in installation pkgadd -d SUNWj5cfg SUNWj5dmo SUNWj5dev SUNWj5rt SUNWj5jmp SUNWj5man all was good except one (SUNWj5rt) some of the output ERROR: attribute verification of... (3 Replies)
Discussion started by: maxim42
3 Replies

8. Shell Programming and Scripting

Script to install jdk

Hi, I need a shell script that would do silent installation of jdk on a linux machine. Can anyone help me with this? Thanx Sunny (6 Replies)
Discussion started by: eamani_sun
6 Replies

9. UNIX for Dummies Questions & Answers

Question about install JDK on SCO Unix

I try to run java file on SCO Unix, but my Unix doesn't setup with JDK environment. I go to sun.com to download JDK for SCO Unix, but there is only JDK for HP-UNIX, is it ok for SCO Unix? If it's ok, how can I install it to my Unix after I download? If it's not ok, How can I do to run java file in... (0 Replies)
Discussion started by: wendyz
0 Replies

10. Solaris

Solaris 10 install doesn't display Network Connectivity prompt page

I have two Dell x86 machines on which I am attempting to install Solaris 10 from CD. I am not doing a Jumpstart install. This is my first experience in installing Solaris (or any other OS). I am following the instructions at How to Quickly Install the Solaris 10 1/06 OS The first machine... (3 Replies)
Discussion started by: sarahsi
3 Replies
Login or Register to Ask a Question
GPT-POSTINSTALL(8)					User Contributed Perl Documentation					GPT-POSTINSTALL(8)

NAME
gpt-postinstall - Searches for post install scripts and executes them SYNOPSIS
gpt-postinstall [-help -force -version -man -location ] DESCRIPTION
gpt-postinstall Searches an installation for post-install scripts that have not been run yet and executes them. These scripts are installed by Setup packages and are designed to localize an installation. The -force flag can be used to re-run all of the setup scripts. OPTIONS
-force forces all action to be taken, regardless of state. -help Print a brief help message and exits. -man Prints the manual page and exits. -version Prints the version of GPT and exits. -location Location indicates the path to the Globus installation that will be used. SEE ALSO
gpt-install(1) gpt-uninstall(1) gpt-verify(1) AUTHOR
Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau <eblau.ncsa.uiuc.edu> perl v5.14.2 2012-04-30 GPT-POSTINSTALL(8)